mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Fixing a typo in the fs.readFile example.
This commit is contained in:
@@ -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