Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
wrap example in function

Co-authored-by: gabrocheleau <gab_rocheleau@hotmail.com>
  • Loading branch information
ryanio and gabrocheleau committed May 27, 2020
1 parent 3de44d1 commit 6462b31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ Example using async/await syntax:
import { BaseTrie as Trie } from 'merkle-patricia-tree'

const trie = new Trie()
await trie.put(Buffer.from('test'), Buffer.from('one'))
const value = await trie.get(Buffer.from('test'))
async function test() {
await trie.put(Buffer.from('test'), Buffer.from('one'))
const value = await trie.get(Buffer.from('test'))
console.log(value) // 'one'
}
```

### Breaking Changes
Expand Down

0 comments on commit 6462b31

Please sign in to comment.