Update doc of PathExt::normalize_path

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 17:22:20 +10:00
parent 989be49cb0
commit b879c15c70
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -1,6 +1,8 @@
use std::path::{Component, Path, PathBuf}; use std::path::{Component, Path, PathBuf};
pub trait PathExt { pub trait PathExt {
/// Similiar to `os.path.normpath`: It does not perform
/// any fs operation.
fn normalize_path(&self) -> PathBuf; fn normalize_path(&self) -> PathBuf;
} }