Skip to content

Commit 084cdde

Browse files
authored
Updated documentation of Prefix::VerbatimDisk
PrefixComponent with Prefix::VerbatimDisk does not contain the trailing slash. The documentation here is also inconsistent with the documentation on other variants that reflect the `PrefixComponent::as_os_str()` return value.
1 parent 0271499 commit 084cdde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ pub enum Prefix<'a> {
157157
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
158158
),
159159

160-
/// Verbatim disk prefix, e.g., `\\?\C:\`.
160+
/// Verbatim disk prefix, e.g., `\\?\C:`.
161161
///
162162
/// Verbatim disk prefixes consist of `\\?\` immediately followed by the
163-
/// drive letter and `:\`.
163+
/// drive letter and `:`.
164164
#[stable(feature = "rust1", since = "1.0.0")]
165165
VerbatimDisk(#[stable(feature = "rust1", since = "1.0.0")] u8),
166166

0 commit comments

Comments
 (0)