mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Fix confusing doc of Vfs::add_path
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
24b1941c1a
commit
989be49cb0
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ impl Vfs {
|
|||
Self(HashMap::with_capacity(16))
|
||||
}
|
||||
|
||||
/// * `path` - must be canonical, must not be empty and must
|
||||
/// start with a prefix.
|
||||
/// * `path` - must be canonical, must not be empty.
|
||||
pub(super) fn add_path(&mut self, mut path: &Path) {
|
||||
while let Some(parent) = path.parent() {
|
||||
if let Some(path_str) = path.to_str() {
|
||||
|
|
Loading…
Add table
Reference in a new issue