From 3c00ec4e484da4b607f65fc56f997fe929254bc1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 5 Sep 2010 02:27:02 -0700 Subject: [PATCH] typo: forceClose -> destroy for WriteStreams --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index 7c8b38c05a5..0eb4a351205 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) {