Skip to content

Commit

Permalink
chore(spellchecker): fix typos in comment
Browse files Browse the repository at this point in the history
- 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: #5750.
  • Loading branch information
argentpapa authored Dec 17, 2024
1 parent 3be7104 commit 6a6fa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocols/kad/src/behaviour/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ fn network_behaviour_on_address_change() {
port_use: PortUse::Reuse,
};

// Mimick a connection being established.
// Mimic a connection being established.
kademlia.on_swarm_event(FromSwarm::ConnectionEstablished(ConnectionEstablished {
peer_id: remote_peer_id,
connection_id,
Expand All @@ -1403,7 +1403,7 @@ fn network_behaviour_on_address_change() {
.unwrap()
.is_empty());

// Mimick the connection handler confirming the protocol for
// Mimic the connection handler confirming the protocol for
// the test connection, so that the peer is added to the routing table.
kademlia.on_connection_handler_event(
remote_peer_id,
Expand Down

0 comments on commit 6a6fa12

Please sign in to comment.