From d233c28e768f8481a275e55d0eca8017c50dc712 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sat, 23 May 2015 19:51:07 +0200 Subject: [PATCH 1/2] doc: missing words --- src/libstd/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 6732af556e0f1..2ce6c18ee1ab1 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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,7 +312,7 @@ 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 { From d59546d07d861e73ade099d28e19c6c7e64dd498 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sat, 23 May 2015 19:51:52 +0200 Subject: [PATCH 2/2] path: make this bit follow idiom --- src/libstd/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 2ce6c18ee1ab1..8b7ef30b65573 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -319,7 +319,7 @@ impl<'a> Prefix<'a> { use self::Prefix::*; match *self { Verbatim(_) | VerbatimDisk(_) | VerbatimUNC(_, _) => true, - _ => false + _ => false, } }