about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMartin Pool <mbp@google.com>2016-11-26 09:24:38 -0800
committerMartin Pool <mbp@google.com>2016-11-26 09:24:48 -0800
commit591c1344560c9e231738a0218770bc14c96f29ae (patch)
tree448f7e84d361a9c7a834c1a45cebc4841ef66025 /src/libstd
parent2a44315fc72d2ab123344dd65b6b2129dff30aaa (diff)
Clearer description of std::path::MAIN_SEPARATOR.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs4
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;