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

Commit 8658360

Browse files
authored
Merge pull request #226 from lukechilds/patch-2
Don't encourage use of `new Buffer()` in examples
2 parents 026ddb4 + b851765 commit 8658360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var address = privateKey.toAddress();
99

1010
## Generate a address from a SHA256 hash
1111
```javascript
12-
var value = new Buffer('correct horse battery staple');
12+
var value = Buffer.from('correct horse battery staple');
1313
var hash = bitcore.crypto.Hash.sha256(value);
1414
var bn = bitcore.crypto.BN.fromBuffer(hash);
1515

0 commit comments

Comments
 (0)