This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix typo in fs.writeFile

  • Loading branch information...
creationix authored and ry committed Feb 21, 2010
1 parent ea4956f commit 68af59ef6b97f7f20860a4aff5ea7379f6e80fea
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.js
View
@@ -508,7 +508,7 @@ var fsModule = createInternalModule("fs", function (exports) {
if (callback) callback(writeErr);
});
} else {
- if (written === _data.length) {
+ if (written === data.length) {
exports.close(fd, callback);
} else {
writeAll(fd, data.slice(written), encoding, callback);

0 comments on commit 68af59e

Please sign in to comment.