We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be5c8f commit 80fde23Copy full SHA for 80fde23
library/std/src/path.rs
@@ -268,6 +268,12 @@ pub fn is_separator(c: char) -> bool {
268
#[stable(feature = "rust1", since = "1.0.0")]
269
pub const MAIN_SEPARATOR: char = crate::sys::path::MAIN_SEP;
270
271
+/// The primary separator of path components for the current platform.
272
+///
273
+/// For example, `/` on Unix and `\` on Windows.
274
+#[unstable(feature = "main_separator_str", issue = "94071")]
275
+pub const MAIN_SEPARATOR_STR: &str = crate::sys::path::MAIN_SEP_STR;
276
+
277
////////////////////////////////////////////////////////////////////////////////
278
// Misc helpers
279
0 commit comments