diff options
author | Ben S <ogham@bsago.me> | 2015-09-03 10:51:59 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-09-03 10:51:59 +0100 |
commit | 4424a6df96d1ffc00578f3845c0c1642551cff6e (patch) | |
tree | 893d68d2bda7053832dd34ae81801eb37350d0f1 /src/dir.rs | |
parent | d089fcc1d832b7906cd724e28a265f8c1641b756 (diff) |
Rename readdir -> read_dir
Diffstat (limited to 'src/dir.rs')
-rw-r--r-- | src/dir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ impl Dir { /// pointed to by the given path. Fails if the directory can't be read, or /// isn't actually a directory, or if there's an IO error that occurs /// while scanning. - pub fn readdir(path: &Path, git: bool) -> io::Result<Dir> { + pub fn read_dir(path: &Path, git: bool) -> io::Result<Dir> { let reader = try!(fs::read_dir(path)); let contents = try!(reader.map(|e| e.map(|e| e.path())).collect()); |