diff options
| author | Chris Denton <ChrisDenton@users.noreply.github.com> | 2021-10-23 20:04:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-23 20:04:45 +0100 |
| commit | 37e4c84b239c58196c888eabf5550f398ea0b7a2 (patch) | |
| tree | 4243e7edb1527f58cac650b500cb4b7e33c83684 | |
| parent | f1efc7efb2bc39021eb93228b1e25c384767b38d (diff) | |
| download | rust-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.rs | 2 |
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 |
