Commit 136a16b 1 parent e7d78fa commit 136a16b Copy full SHA for 136a16b
File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -702,18 +702,22 @@ impl RelativePathBuf {
702
702
703
703
/// Extends `self` with `path`.
704
704
///
705
- /// If `path` is absolute, it replaces the current path.
706
- ///
707
705
/// # Examples
708
706
///
709
707
/// ```
710
- /// use relative_path::{ RelativePathBuf, RelativePath} ;
708
+ /// use relative_path::RelativePathBuf;
711
709
///
712
710
/// let mut path = RelativePathBuf::new();
713
711
/// path.push("foo");
714
712
/// path.push("bar");
715
713
///
716
714
/// assert_eq!("foo/bar", path);
715
+ ///
716
+ /// let mut path = RelativePathBuf::new();
717
+ /// path.push("foo");
718
+ /// path.push("/bar");
719
+ ///
720
+ /// assert_eq!("foo/bar", path);
717
721
/// ```
718
722
pub fn push < P > ( & mut self , path : P )
719
723
where
You can’t perform that action at this time.
0 commit comments