From 591c1344560c9e231738a0218770bc14c96f29ae Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sat, 26 Nov 2016 09:24:38 -0800 Subject: [PATCH] Clearer description of std::path::MAIN_SEPARATOR. --- src/libstd/path.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index bb6883236e802..0340484501738 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;