Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75de258

Browse filesBrowse files
rodmachenjasnell
authored andcommitted
doc: fix spelling in Buffer documentation
Change b.writeUint16LE(0x90ab, 0) to b.writeUInt16LE(0x90ab, 0). PR-URL: #3226 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent 2ddbbfd commit 75de258
Copy full SHA for 75de258

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ A generalized version of all numeric read methods. Supports up to 48 bits of
232232
accuracy. For example:
233233

234234
var b = new Buffer(6);
235-
b.writeUint16LE(0x90ab, 0);
235+
b.writeUInt16LE(0x90ab, 0);
236236
b.writeUInt32LE(0x12345678, 2);
237237
b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits)
238238
// output: '1234567890ab'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.