Skip to content

Commit 37e4c84

Browse files
ChrisDentonKapJI
andauthored
Fix typo
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
1 parent f1efc7e commit 37e4c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn parse_next_component(path: &OsStr, verbatim: bool) -> (&OsStr, &OsStr) {
150150
///
151151
/// This path may or may not have a verbatim prefix.
152152
pub(crate) fn maybe_verbatim(path: &Path) -> io::Result<Vec<u16>> {
153-
// Normally the MAX path is 260 UTF-16 code units (including the NULL).
153+
// Normally the MAX_PATH is 260 UTF-16 code units (including the NULL).
154154
// However, for APIs such as CreateDirectory[1], the limit is 248.
155155
//
156156
// [1]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createdirectorya#parameters

0 commit comments

Comments
 (0)