From 989be49cb0faa620b6b6c56e1e30e5514fcfc590 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 12 Jun 2022 17:13:48 +1000 Subject: [PATCH] Fix confusing doc of `Vfs::add_path` Signed-off-by: Jiahao XU --- src/drivers/vfs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/drivers/vfs.rs b/src/drivers/vfs.rs index 56aa5f54..08178b06 100644 --- a/src/drivers/vfs.rs +++ b/src/drivers/vfs.rs @@ -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() {