diff options
Diffstat (limited to 'src/path.rs')
-rw-r--r-- | src/path.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/path.rs b/src/path.rs index 28eb45b..412489b 100644 --- a/src/path.rs +++ b/src/path.rs @@ -17,11 +17,14 @@ use std::path::Path; /// let path = vec!["/bin"]; /// let path = path.into_iter().map(Path::new).collect(); /// let mut bins = prefresh(&path); +/// let mut bins = path::refresh(&path); /// ... /// // A situation occurs where the $PATH needs to be refreshed /// bins = prefresh(&path) +/// bins = path::refresh(&path) /// ``` pub fn prefresh(path: &Vec<&Path>) -> Vec<String> { +pub fn refresh(path: &Vec<&Path>) -> Vec<String> { let mut bins: Vec<String> = Vec::new(); for p in path { |