Skip to content

Commit

Permalink
Rollup merge of #31733 - gkoz:strip_prefix_docs, r=alexcrichton
Browse files Browse the repository at this point in the history
It wasn't fixed after copy-pasting. This probably needs to be backported to beta.
  • Loading branch information
steveklabnik committed Feb 17, 2016
2 parents b85033a + f82c984 commit 27ede43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,10 @@ impl Path {

/// Returns a path that, when joined onto `base`, yields `self`.
///
/// # Errors
///
/// If `base` is not a prefix of `self` (i.e. `starts_with`
/// returns false), then `relative_from` returns `None`.
/// returns `false`), returns `Err`.
#[stable(since = "1.7.0", feature = "path_strip_prefix")]
pub fn strip_prefix<'a, P: ?Sized>(&'a self, base: &'a P)
-> Result<&'a Path, StripPrefixError>
Expand Down

0 comments on commit 27ede43

Please sign in to comment.