Skip to content

Commit 7146843

Browse files
argentpapajxs
authored andcommitted
chore(spellchecker): fix typos in comment
- use spellchecker, and check false positive manually ``` codespell -L crate,COMIT,comit -S CHANGELOG.md ``` - maybe we can add typo checker in github action ref: https://github.com/codespell-project/actions-codespell Pull-Request: libp2p#5750.
1 parent a72e811 commit 7146843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protocols/kad/src/behaviour/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ fn network_behaviour_on_address_change() {
13811381
port_use: PortUse::Reuse,
13821382
};
13831383

1384-
// Mimick a connection being established.
1384+
// Mimic a connection being established.
13851385
kademlia.on_swarm_event(FromSwarm::ConnectionEstablished(ConnectionEstablished {
13861386
peer_id: remote_peer_id,
13871387
connection_id,
@@ -1403,7 +1403,7 @@ fn network_behaviour_on_address_change() {
14031403
.unwrap()
14041404
.is_empty());
14051405

1406-
// Mimick the connection handler confirming the protocol for
1406+
// Mimic the connection handler confirming the protocol for
14071407
// the test connection, so that the peer is added to the routing table.
14081408
kademlia.on_connection_handler_event(
14091409
remote_peer_id,

0 commit comments

Comments
 (0)