From f0f2d2ee70a7b1e64d08827f961add853c8b718c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 22 Feb 2010 14:04:54 -0800 Subject: [PATCH] Fix readdirSync in docs --- doc/api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.txt b/doc/api.txt index 75a3c3acd0..6acd34feb8 100644 --- a/doc/api.txt +++ b/doc/api.txt @@ -637,7 +637,7 @@ Asynchronous readdir(3). Reads the contents of a directory. The callback gets two arguments +(err, files)+ where +files+ is an array of the names of the files in the directory excluding +"."+ and +".."+. -+fs.readdir(path, callback)+ :: ++fs.readdirSync(path)+ :: Synchronous readdir(3). Returns an array of filenames excluding +"."+ and +".."+.