typo: forceClose -> destroy for WriteStreams

This commit is contained in:
Ryan Dahl 2010-09-05 02:27:02 -07:00
parent cda1a38426
commit 3c00ec4e48

View File

@ -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) {