diff options
| author | Martin Pool <mbp@google.com> | 2016-11-26 09:24:38 -0800 |
|---|---|---|
| committer | Martin Pool <mbp@google.com> | 2016-11-26 09:24:48 -0800 |
| commit | 591c1344560c9e231738a0218770bc14c96f29ae (patch) | |
| tree | 448f7e84d361a9c7a834c1a45cebc4841ef66025 /src/libstd | |
| parent | 2a44315fc72d2ab123344dd65b6b2129dff30aaa (diff) | |
Clearer description of std::path::MAIN_SEPARATOR.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index bb6883236e8..03404845017 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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; |
