Improve Windows path prefix parsing

This commit is contained in:
dylni
2022-03-19 10:30:34 -04:00
parent 2c28b0eaf9
commit e87082293e
6 changed files with 124 additions and 37 deletions

View File

@@ -168,8 +168,8 @@ pub enum Prefix<'a> {
/// Device namespace prefix, e.g., `\\.\COM42`.
///
/// Device namespace prefixes consist of `\\.\` immediately followed by the
/// device name.
/// Device namespace prefixes consist of `\\.\` (possibly using `/`
/// instead of `\`), immediately followed by the device name.
#[stable(feature = "rust1", since = "1.0.0")]
DeviceNS(#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr),