Auto merge of #25736 - tshepang:path-nits, r=steveklabnik
This commit is contained in:
commit
0d64659c30
1 changed files with 3 additions and 3 deletions
|
@ -258,7 +258,7 @@ mod platform {
|
||||||
/// Path prefixes (Windows only).
|
/// Path prefixes (Windows only).
|
||||||
///
|
///
|
||||||
/// Windows uses a variety of path styles, including references to drive
|
/// Windows uses a variety of path styles, including references to drive
|
||||||
/// volumes (like `C:`), network shared (like `\\server\share`) and
|
/// volumes (like `C:`), network shared folders (like `\\server\share`) and
|
||||||
/// others. In addition, some path prefixes are "verbatim", in which case
|
/// others. In addition, some path prefixes are "verbatim", in which case
|
||||||
/// `/` is *not* treated as a separator and essentially no normalization is
|
/// `/` is *not* treated as a separator and essentially no normalization is
|
||||||
/// performed.
|
/// performed.
|
||||||
|
@ -312,14 +312,14 @@ impl<'a> Prefix<'a> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Determines if the prefix is verbatim, i.e. begins `\\?\`.
|
/// Determines if the prefix is verbatim, i.e. begins with `\\?\`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn is_verbatim(&self) -> bool {
|
pub fn is_verbatim(&self) -> bool {
|
||||||
use self::Prefix::*;
|
use self::Prefix::*;
|
||||||
match *self {
|
match *self {
|
||||||
Verbatim(_) | VerbatimDisk(_) | VerbatimUNC(_, _) => true,
|
Verbatim(_) | VerbatimDisk(_) | VerbatimUNC(_, _) => true,
|
||||||
_ => false
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue