Skip to content

Commit dbc6210

Browse files
chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <[email protected]>
1 parent 655dd74 commit dbc6210

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/API.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* [`metrics.forPeer`](#metricsforpeer)
4242
* [`metrics.forProtocol`](#metricsforprotocol)
4343
* [Events](#events)
44-
* [`libp2p`](#eventslibp2p)
45-
* [`libp2p.peerStore`](#eventslibp2ppeerStore)
44+
* [`libp2p`](#libp2p)
45+
* [`libp2p.peerStore`](#libp2ppeerStore)
4646
* [Types](#types)
4747
* [`Stats`](#stats)
4848

@@ -1144,19 +1144,19 @@ This event will be triggered anytime we are disconnected from another peer, rega
11441144

11451145
- `peerId`: instance of [`PeerId`][peer-id]
11461146

1147-
#### Knownw multiaddrs for a peer change
1147+
#### Known multiaddrs for a peer change
11481148

11491149
`libp2p.peerStore.on('change:multiaddrs', ({ peerId, multiaddrs}) => {})`
11501150

11511151
- `peerId`: instance of [`PeerId`][peer-id]
1152-
- `multiaddrs`: array of known [`multiaddr`][multiaddr] for a the peer
1152+
- `multiaddrs`: array of known [`multiaddr`][multiaddr] for the peer
11531153

1154-
#### Knownw protocols for a peer change
1154+
#### Known protocols for a peer change
11551155

11561156
`libp2p.peerStore.on('change:protocols', ({ peerId, protocols}) => {})`
11571157

11581158
- `peerId`: instance of [`PeerId`][peer-id]
1159-
- `protocols`: array of known supported protocols for the peer (string identifiers)
1159+
- `protocols`: array of known, supported protocols for the peer (string identifiers)
11601160

11611161
## Types
11621162

0 commit comments

Comments
 (0)