Skip to content

Instantly share code, notes, and snippets.

@koichik
Created December 27, 2010 16:58
Show Gist options
  • Save koichik/756290 to your computer and use it in GitHub Desktop.
Save koichik/756290 to your computer and use it in GitHub Desktop.
[PATCH] correct the option's default values in fs docs
From 9fc5855b106046fb6cf6d5ffc44310715b4f92d5 Mon Sep 17 00:00:00 2001
From: koichik <koichik@improvement.jp>
Date: Tue, 28 Dec 2010 01:57:24 +0900
Subject: [PATCH] correct the option's default values in fs docs
---
doc/api/fs.markdown | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown
index 802cb0c..426ac11 100644
--- a/doc/api/fs.markdown
+++ b/doc/api/fs.markdown
@@ -350,9 +350,8 @@ Returns a new ReadStream object (See `Readable Stream`).
`options` is an object with the following defaults:
{ flags: 'r',
- encoding: null,
mode: 0666,
- bufferSize: 4096 }
+ bufferSize: 64 * 1024 }
`options` can include `start` and `end` values to read a range of bytes from
the file instead of the entire file. Both `start` and `end` are inclusive and
@@ -380,5 +379,5 @@ Returns a new WriteStream object (See `Writable Stream`).
`options` is an object with the following defaults:
{ flags: 'w',
- encoding: null,
+ encoding: 'binary',
mode: 0666 }
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment