From d8832425fc407f36191dcc65c4bc41319aca5c14 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Thu, 2 Dec 2021 19:37:25 +0000 Subject: [PATCH] Document file path case sensitivity --- library/std/src/path.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/std/src/path.rs b/library/std/src/path.rs index cf2cd5adc4848..9ade2847e8ea9 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -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