summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-09-05 02:27:02 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-09-05 02:27:02 -0700
commit3c00ec4e484da4b607f65fc56f997fe929254bc1 (patch)
treed243d12dc809b678414918426134033b38a79144
parentcda1a384260886b5cf84056885dfc9169441248e (diff)
downloadnode-new-3c00ec4e484da4b607f65fc56f997fe929254bc1.tar.gz
typo: forceClose -> destroy for WriteStreams
-rw-r--r--lib/fs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 7c8b38c05a..0eb4a35120 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -945,7 +945,7 @@ WriteStream.prototype.forceClose = function (cb) {
};
-WriteStream.prototype.forceClose = function (cb) {
+WriteStream.prototype.destroy = function (cb) {
this.writeable = false;
fs.close(self.fd, function(err) {
if (err) {