Auto merge of #25736 - tshepang:path-nits, r=steveklabnik
This commit is contained in:
commit
0d64659c30
@ -258,7 +258,7 @@ mod platform {
|
||||
/// Path prefixes (Windows only).
|
||||
///
|
||||
/// 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
|
||||
/// `/` is *not* treated as a separator and essentially no normalization is
|
||||
/// 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]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn is_verbatim(&self) -> bool {
|
||||
use self::Prefix::*;
|
||||
match *self {
|
||||
Verbatim(_) | VerbatimDisk(_) | VerbatimUNC(_, _) => true,
|
||||
_ => false
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user