Skip to content

Commit acfa113

Browse files
authored
Auto merge of #34590 - pwlandoll:master, r=apasel422
Issue #34076: Removing reference to removed path.prefix() function In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute) to the `path.prefix()` function which has since been removed. The offending reference is now also removed. First pull request, feedback welcome! r? @steveklabnik
2 parents d508de6 + acc8ec0 commit acfa113

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/path.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1442,8 +1442,7 @@ impl Path {
14421442
/// `is_absolute` and `has_root` are equivalent.
14431443
///
14441444
/// * On Windows, a path is absolute if it has a prefix and starts with the
1445-
/// root: `c:\windows` is absolute, while `c:temp` and `\temp` are not. In
1446-
/// other words, `path.is_absolute() == path.prefix().is_some() && path.has_root()`.
1445+
/// root: `c:\windows` is absolute, while `c:temp` and `\temp` are not.
14471446
///
14481447
/// # Examples
14491448
///

0 commit comments

Comments
 (0)