diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index bbfa15d69bd..4bfd3bbcd3f 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -788,8 +788,8 @@ pub fn list_dir(p: &Path) -> ~[~str] { * * This version prepends each entry with the directory. */ -pub fn list_dir_path(p: &Path) -> ~[~Path] { - list_dir(p).map(|f| ~p.push(*f)) +pub fn list_dir_path(p: &Path) -> ~[Path] { + list_dir(p).map(|f| p.push(*f)) } /// Removes a directory at the specified path, after removing |
