relative-path
relative-path copied to clipboard
Documentation and behavior mismatch for RelativePathBuf::push
From the RelativePathBuf::push
documentation :
Extends `self` with `path`.
If `path` is absolute, it replaces the current path.
When I run this code :
let mut path = RelativePathBuf::from("a/b/c");
path.push("/d/e/f");
println!("{}", path);
It prints :
a/b/c/d/e/f
This is the expected result but the documentation says otherwise.
Thanks!
I also caught this. It would be great to remove this from the docs. Thanks!
Removed and released a documentation fix. Thank you!