Skip to content

Commit

Permalink
Removing confusing assignment in example of README
Browse files Browse the repository at this point in the history
The `toBuffer()` returns nothing, the assignment could confuse on first read.
  • Loading branch information
leplatrem committed Jul 14, 2016
1 parent 8513ec6 commit a4190e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -30,7 +30,7 @@ var toBuffer = require('blob-to-buffer')
// Get a Blob somehow...
var blob = new Blob([ new Uint8Array([1, 2, 3]) ], { type: 'application/octet-binary' })

var buffer = toBuffer(blob, function (err, buffer) {
toBuffer(blob, function (err, buffer) {
if (err) throw err

buffer[0] // => 1
Expand Down

0 comments on commit a4190e0

Please sign in to comment.