Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #226 from lukechilds/patch-2
Browse files Browse the repository at this point in the history
Don't encourage use of `new Buffer()` in examples
  • Loading branch information
matiu authored Apr 19, 2018
2 parents 026ddb4 + b851765 commit 8658360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var address = privateKey.toAddress();

## Generate a address from a SHA256 hash
```javascript
var value = new Buffer('correct horse battery staple');
var value = Buffer.from('correct horse battery staple');
var hash = bitcore.crypto.Hash.sha256(value);
var bn = bitcore.crypto.BN.fromBuffer(hash);

Expand Down

0 comments on commit 8658360

Please sign in to comment.