Skip to content

Commit 6e5f4c2

Browse files
authored
Rollup merge of #91464 - ChrisDenton:doc-path-case-sensitivity, r=joshtriplett
Document file path case sensitivity This describes the current behaviour of the standard library's pure path methods. Fixes #66260.
2 parents 2ec0f84 + d883242 commit 6e5f4c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/std/src/path.rs

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
//! [`PathBuf`]; note that the paths may differ syntactically by the
1313
//! normalization described in the documentation for the [`components`] method.
1414
//!
15+
//! ## Case sensitivity
16+
//!
17+
//! Unless otherwise indicated path methods that do not access the filesystem,
18+
//! such as [`Path::starts_with`] and [`Path::ends_with`], are case sensitive no
19+
//! matter the platform or filesystem. An exception to this is made for Windows
20+
//! drive letters.
21+
//!
1522
//! ## Simple usage
1623
//!
1724
//! Path manipulation includes both parsing components from slices and building

0 commit comments

Comments
 (0)