Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

misc: change "new Buffer" to "Buffer.from()" #291

Merged
merged 1 commit into from
Jun 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SPEC/PUBSUB.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ If no `callback` is passed, a promise is returned.

```JavaScript
const topic = 'fruit-of-the-day'
const msg = new Buffer('banana')
const msg = Buffer.from('banana')

ipfs.pubsub.publish(topic, msg, (err) => {
if (err) {
Expand Down