diff --git a/src/content-routing/README.md b/src/content-routing/README.md index 4d6223702..73abd004b 100644 --- a/src/content-routing/README.md +++ b/src/content-routing/README.md @@ -43,7 +43,7 @@ Find peers in the network that can provide a specific value, given a key. It returns an `AsyncIterable` containing the identification and addresses of the peers providing the given key, as follows: -`AsyncIterable<{ id: PeerId, addrs: Multiaddr[] }>` +`AsyncIterable<{ id: PeerId, multiaddrs: Multiaddr[] }>` ### provide diff --git a/src/peer-routing/README.md b/src/peer-routing/README.md index 66302209c..12e9f2fb2 100644 --- a/src/peer-routing/README.md +++ b/src/peer-routing/README.md @@ -43,4 +43,4 @@ Query the network for all multiaddresses associated with a `PeerId`. It returns the [peerId](https://github.com/libp2p/js-peer-id) together with the known peers [multiaddrs](https://github.com/multiformats/js-multiaddr), as follows: -`Promise<{ id: PeerId, addrs: Multiaddr[] }>` +`Promise<{ id: PeerId, multiaddrs: Multiaddr[] }>`