We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2625bf9 commit 9ec9bc6Copy full SHA for 9ec9bc6
src/libstd/path.rs
@@ -1243,6 +1243,9 @@ impl Path {
1243
}
1244
1245
/// Returns a path that, when joined onto `base`, yields `self`.
1246
+ ///
1247
+ /// If `base` is not a prefix of `self` (i.e. `starts_with`
1248
+ /// returns false), then `relative_from` returns `None`.
1249
#[unstable(feature = "path_relative_from", reason = "see #23284")]
1250
pub fn relative_from<'a, P: ?Sized>(&'a self, base: &'a P) -> Option<&Path> where
1251
P: AsPath
0 commit comments