about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-07-04 05:03:04 -0700
committerGitHub <noreply@github.com>2016-07-04 05:03:04 -0700
commitacfa113c12e986a084f4a9346a479f9573f5b54f (patch)
treed12bfded914a2871c319396a9e79cb8a2cad2396
parentd508de6cf7c7bb9b5057ee63432dbbc899209101 (diff)
parentacc8ec0d8dc467ec96fd052e0b3f5fa587c37e3f (diff)
downloadrust-acfa113c12e986a084f4a9346a479f9573f5b54f.tar.gz
rust-acfa113c12e986a084f4a9346a479f9573f5b54f.zip
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
-rw-r--r--src/libstd/path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 462e50a72cc..ad4cdef6158 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1442,8 +1442,7 @@ impl Path {
     /// `is_absolute` and `has_root` are equivalent.
     ///
     /// * On Windows, a path is absolute if it has a prefix and starts with the
-    /// root: `c:\windows` is absolute, while `c:temp` and `\temp` are not. In
-    /// other words, `path.is_absolute() == path.prefix().is_some() && path.has_root()`.
+    /// root: `c:\windows` is absolute, while `c:temp` and `\temp` are not.
     ///
     /// # Examples
     ///