Skip to content

Commit

Permalink
Auto merge of #38019 - sourcefrog:doc-separator, r=frewsxcv
Browse files Browse the repository at this point in the history
Clearer description of std::path::MAIN_SEPARATOR.
  • Loading branch information
bors committed Nov 28, 2016
2 parents 03bdaad + 591c134 commit c7ddb89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ pub fn is_separator(c: char) -> bool {
c.is_ascii() && is_sep_byte(c as u8)
}

/// The primary separator for the current platform
/// The primary separator of path components for the current platform.
///
/// For example, `/` on Unix and `\` on Windows.
#[stable(feature = "rust1", since = "1.0.0")]
pub const MAIN_SEPARATOR: char = ::sys::path::MAIN_SEP;

Expand Down

0 comments on commit c7ddb89

Please sign in to comment.