Fix docstore.get() doc

This commit is contained in:
Haoliang Yu 2018-09-17 20:14:14 +08:00 committed by GitHub
parent 5e3d0c5e81
commit 467c66816a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
API.md
View File

@ -332,7 +332,6 @@ Returns a `Promise` that resolves to the multihash of the entry as a `String`.
Returns an `Array` with a single `Object` if key exists.
```javascript
const profile = db.get('shamb0t')
.map((e) => e.payload.value)
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
```