mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fixing a typo in the fs.readFile example.
This commit is contained in:
1 parent
84277ea845
commit
8aaffe71ee
1 file changed
+1
-1
+1
-1
@@ -695,7 +695,7 @@ Asynchronously reads the entire contents of a file. Example:
|
||||
--------------------------------
|
||||
fs.readFile("/etc/passwd", function (err, data) {
|
||||
if (err) throw err;
|
||||
sys.puts(content);
|
||||
sys.puts(data);
|
||||
});
|
||||
--------------------------------
|
||||
+
|
||||
|
||||
Reference in new issue
Block a user