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

Sign up
Appearance settings

Commit a4190e0

Browse files
Removing confusing assignment in example of README
The `toBuffer()` returns nothing, the assignment could confuse on first read.
1 parent 8513ec6 commit a4190e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var toBuffer = require('blob-to-buffer')
3030
// Get a Blob somehow...
3131
var blob = new Blob([ new Uint8Array([1, 2, 3]) ], { type: 'application/octet-binary' })
3232

33-
var buffer =toBuffer(blob, function (err, buffer) {
33+
toBuffer(blob, function (err, buffer) {
3434
if (err) throw err
3535

3636
buffer[0] // => 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /