diff --git a/doc/API.md b/doc/API.md index 2f70a1b432..7cf7418516 100644 --- a/doc/API.md +++ b/doc/API.md @@ -411,7 +411,7 @@ Once a content router succeeds, the iteration will stop. If the DHT is enabled, ```js // Iterate over the providers found for the given cid for await (const provider of libp2p.contentRouting.findProviders(cid)) { - console.log(provider.id, provider.addrs) + console.log(provider.id, provider.multiaddrs) } ``` diff --git a/src/identify/index.js b/src/identify/index.js index f64e19f888..6fe8732fd6 100644 --- a/src/identify/index.js +++ b/src/identify/index.js @@ -48,7 +48,7 @@ class IdentifyService { * @param {Registrar} options.registrar * @param {Map} options.protocols A reference to the protocols we support * @param {PeerId} options.peerId The peer running the identify service - * @param {{ listen: Array}} options.addresses The peer aaddresses + * @param {{ listen: Array}} options.addresses The peer addresses */ constructor (options) { /**