Skip to content

Commit

Permalink
Rollup merge of #91464 - ChrisDenton:doc-path-case-sensitivity, r=jos…
Browse files Browse the repository at this point in the history
…htriplett

Document file path case sensitivity

This describes the current behaviour of the standard library's pure path methods.

Fixes #66260.
  • Loading branch information
matthiaskrgr authored Dec 2, 2021
2 parents 2ec0f84 + d883242 commit 6e5f4c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
//! [`PathBuf`]; note that the paths may differ syntactically by the
//! normalization described in the documentation for the [`components`] method.
//!
//! ## Case sensitivity
//!
//! Unless otherwise indicated path methods that do not access the filesystem,
//! such as [`Path::starts_with`] and [`Path::ends_with`], are case sensitive no
//! matter the platform or filesystem. An exception to this is made for Windows
//! drive letters.
//!
//! ## Simple usage
//!
//! Path manipulation includes both parsing components from slices and building
Expand Down

0 comments on commit 6e5f4c2

Please sign in to comment.