Skip to content

Commit

Permalink
Clearer description of std::path::MAIN_SEPARATOR.
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 26, 2016
1 parent 2a44315 commit 591c134
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 @@ -247,7 +247,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 591c134

Please sign in to comment.