about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <ChrisDenton@users.noreply.github.com>2021-10-23 20:04:45 +0100
committerGitHub <noreply@github.com>2021-10-23 20:04:45 +0100
commit37e4c84b239c58196c888eabf5550f398ea0b7a2 (patch)
tree4243e7edb1527f58cac650b500cb4b7e33c83684
parentf1efc7efb2bc39021eb93228b1e25c384767b38d (diff)
downloadrust-37e4c84b239c58196c888eabf5550f398ea0b7a2.tar.gz
rust-37e4c84b239c58196c888eabf5550f398ea0b7a2.zip
Fix typo
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
-rw-r--r--library/std/src/sys/windows/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/path.rs b/library/std/src/sys/windows/path.rs
index ad3f44fee8d..460c1eff778 100644
--- a/library/std/src/sys/windows/path.rs
+++ b/library/std/src/sys/windows/path.rs
@@ -150,7 +150,7 @@ fn parse_next_component(path: &OsStr, verbatim: bool) -> (&OsStr, &OsStr) {
 ///
 /// This path may or may not have a verbatim prefix.
 pub(crate) fn maybe_verbatim(path: &Path) -> io::Result<Vec<u16>> {
-    // Normally the MAX path is 260 UTF-16 code units (including the NULL).
+    // Normally the MAX_PATH is 260 UTF-16 code units (including the NULL).
     // However, for APIs such as CreateDirectory[1], the limit is 248.
     //
     // [1]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createdirectorya#parameters