diff options
| author | SOFe <sofe2038@gmail.com> | 2020-05-15 22:41:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-15 22:41:36 +0800 |
| commit | 084cdde976e2485104bc14b8079238b37ab8aac1 (patch) | |
| tree | 6f3dc297d4d6e0ebcc9dfe989f81b48ea82ee351 /src/libstd | |
| parent | 027149919e36ce5645ca5d02d55b97ef52eb55ba (diff) | |
| download | rust-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.rs | 4 |
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), |
