summaryrefslogtreecommitdiffstats
path: root/src/dir.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-09-03 10:51:59 +0100
committerBen S <ogham@bsago.me>2015-09-03 10:51:59 +0100
commit4424a6df96d1ffc00578f3845c0c1642551cff6e (patch)
tree893d68d2bda7053832dd34ae81801eb37350d0f1 /src/dir.rs
parentd089fcc1d832b7906cd724e28a265f8c1641b756 (diff)
Rename readdir -> read_dir
Diffstat (limited to 'src/dir.rs')
-rw-r--r--src/dir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dir.rs b/src/dir.rs
index d7adb09..4126656 100644
--- a/src/dir.rs
+++ b/src/dir.rs
@@ -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());