about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSOFe <sofe2038@gmail.com>2020-05-15 22:41:36 +0800
committerGitHub <noreply@github.com>2020-05-15 22:41:36 +0800
commit084cdde976e2485104bc14b8079238b37ab8aac1 (patch)
tree6f3dc297d4d6e0ebcc9dfe989f81b48ea82ee351 /src/libstd
parent027149919e36ce5645ca5d02d55b97ef52eb55ba (diff)
downloadrust-084cdde976e2485104bc14b8079238b37ab8aac1.tar.gz
rust-084cdde976e2485104bc14b8079238b37ab8aac1.zip
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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 173d6d1cfa7..8516e80f3b8 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -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),