Auto merge of #38019 - sourcefrog:doc-separator, r=frewsxcv
Clearer description of std::path::MAIN_SEPARATOR.
This commit is contained in:
commit
c7ddb8946b
1 changed files with 3 additions and 1 deletions
|
@ -254,7 +254,9 @@ pub fn is_separator(c: char) -> bool {
|
||||||
c.is_ascii() && is_sep_byte(c as u8)
|
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")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub const MAIN_SEPARATOR: char = ::sys::path::MAIN_SEP;
|
pub const MAIN_SEPARATOR: char = ::sys::path::MAIN_SEP;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue