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.
This commit is contained in:
SOFe 2020-05-15 22:41:36 +08:00 committed by GitHub
parent 027149919e
commit 084cdde976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,10 +157,10 @@ pub enum Prefix<'a> {
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr, #[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
), ),
/// Verbatim disk prefix, e.g., `\\?\C:\`. /// Verbatim disk prefix, e.g., `\\?\C:`.
/// ///
/// Verbatim disk prefixes consist of `\\?\` immediately followed by the /// Verbatim disk prefixes consist of `\\?\` immediately followed by the
/// drive letter and `:\`. /// drive letter and `:`.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
VerbatimDisk(#[stable(feature = "rust1", since = "1.0.0")] u8), VerbatimDisk(#[stable(feature = "rust1", since = "1.0.0")] u8),