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

Commit 647e399

Browse files
olizilladaviddias
authored andcommitted
docs: Fix dht spec examples (#257)
Fix erroneous camel-casing of `findprovs` and `findpeer` in examples.
1 parent 4ab782e commit 647e399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPEC/DHT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If no `callback` is passed, a promise is returned.
2020
```JavaScript
2121
var id = PeerId.create()
2222

23-
ipfs.dht.findPeer(id, function (err, peerInfo) {
23+
ipfs.dht.findpeer(id, function (err, peerInfo) {
2424
// peerInfo will contain the multiaddrs of that peer
2525
})
2626
```
@@ -44,7 +44,7 @@ If no `callback` is passed, a promise is returned.
4444
**Example:**
4545

4646
```JavaScript
47-
ipfs.dht.findProvs(multihash, function (err, peerInfos) {})
47+
ipfs.dht.findprovs(multihash, function (err, peerInfos) {})
4848
```
4949

5050
A great source of [examples][] can be found in the tests for this API.

0 commit comments

Comments
 (0)