Skip to content

Commit

Permalink
Rollup merge of #72230 - SOF3:patch-1, r=kennytm
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC authored May 16, 2020
2 parents 1be88e6 + 084cdde commit 8b1cc10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ pub enum Prefix<'a> {
#[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
/// drive letter and `:\`.
/// drive letter and `:`.
#[stable(feature = "rust1", since = "1.0.0")]
VerbatimDisk(#[stable(feature = "rust1", since = "1.0.0")] u8),

Expand Down

0 comments on commit 8b1cc10

Please sign in to comment.