Skip to content

Commit 591c134

Browse files
committed
Clearer description of std::path::MAIN_SEPARATOR.
1 parent 2a44315 commit 591c134

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/path.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ pub fn is_separator(c: char) -> bool {
247247
c.is_ascii() && is_sep_byte(c as u8)
248248
}
249249

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

0 commit comments

Comments
 (0)