Skip to content

Commit 5f0d3f2

Browse files
authored
chore: fix spelling mistakes using crate-ci/typos
Fix spelling mistakes and typos in all source files using the [crate-ci/typos](https://github.com/crate-ci/typos) CLI tool. Pull-Request: #5853.
1 parent 56691db commit 5f0d3f2

File tree

31 files changed

+56
-56
lines changed

31 files changed

+56
-56
lines changed

core/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ See [PR 4568].
326326

327327
- Remove `TInEvent` and `TOutEvent` trait parameters on most public types.
328328
`TInEvent` and `TOutEvent` are implied through `THandler` and thus
329-
superflucious. Both are removed in favor of a derivation through `THandler`
329+
superfluous. Both are removed in favor of a derivation through `THandler`
330330
(see [PR 2183]).
331331

332332
- Require `ConnectionHandler::{InEvent,OutEvent,Error}` to implement `Debug`
@@ -445,7 +445,7 @@ See [PR 4568].
445445
- New configurable connection limits for established connections and
446446
dedicated connection counters. Removed the connection limit dedicated
447447
to outgoing pending connection _per peer_. Connection limits are now
448-
represented by `u32` intead of `usize` types.
448+
represented by `u32` instead of `usize` types.
449449
[PR 1848](https://github.com/libp2p/rust-libp2p/pull/1848/).
450450

451451
- Update `multihash`.

core/src/signed_envelope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl SignedEnvelope {
4949
/// Extract the payload and signing key of this [`SignedEnvelope`].
5050
///
5151
/// You must provide the correct domain-separation string and expected payload type in order to
52-
/// get the payload. This guards against accidental mis-use of the payload where the
52+
/// get the payload. This guards against accidental misuse of the payload where the
5353
/// signature was created for a different purpose or payload type.
5454
///
5555
/// It is the caller's responsibility to check that the signing key is what

core/src/transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub struct DialOpts {
104104
/// by a [`Transport`] through an upgrade mechanism that is initiated via
105105
/// [`upgrade`](Transport::upgrade).
106106
///
107-
/// Note for implementors: Futures returned by [`Transport::dial`] should only
107+
/// Note for implementers: Futures returned by [`Transport::dial`] should only
108108
/// do work once polled for the first time. E.g. in the case of TCP, connecting
109109
/// to the remote should not happen immediately on [`Transport::dial`] but only
110110
/// once the returned [`Future`] is polled. The caller of [`Transport::dial`]

core/src/transport/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ where
185185
}
186186
}
187187

188-
/// An transport with peer authentication, obtained from [`Builder::authenticate`].
188+
/// A transport with peer authentication, obtained from [`Builder::authenticate`].
189189
#[derive(Clone)]
190190
pub struct Authenticated<T>(Builder<T>);
191191

docs/maintainer-handbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer handbook
22

3-
This document describes what ever maintainer of the repository should know.
3+
This document describes whatever maintainer of the repository should know.
44

55
## GitHub settings
66

examples/file-sharing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Let's understand the flow of the file sharing process:
2929

3030
The File Sharing application has the following architectural properties:
3131

32-
- **Clean and Clonable Interface**: The application provides a clean and clonable async/await interface, allowing users to interact with the network layer seamlessly.
32+
- **Clean and Cloneable Interface**: The application provides a clean and cloneable async/await interface, allowing users to interact with the network layer seamlessly.
3333
The `Client` module encapsulates the necessary functionality for network communication.
3434

3535
- **Efficient Network Handling**: The application operates with a single task that drives the network layer.

identity/src/rsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl PublicKey {
105105
self.0.clone()
106106
}
107107

108-
/// Encode the RSA public key in DER as a X.509 SubjectPublicKeyInfo structure,
108+
/// Encode the RSA public key in DER as an X.509 SubjectPublicKeyInfo structure,
109109
/// as defined in [RFC5280].
110110
///
111111
/// [RFC5280]: https://tools.ietf.org/html/rfc5280#section-4.1

interop-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To run the webrtc-direct test, you'll need the `chromedriver` in your `$PATH`, c
3939
# Running all interop tests locally with Compose
4040

4141
To run this test against all released libp2p versions you'll need to have the
42-
(libp2p/test-plans)[https://github.com/libp2p/test-plans] checked out. Then do
42+
[libp2p/test-plans](https://github.com/libp2p/test-plans) checked out. Then do
4343
the following (from the root directory of this repository):
4444

4545
1. Build the image: `docker build -t rust-libp2p-head . -f interop-tests/Dockerfile`.

misc/multistream-select/src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl fmt::Display for Protocol {
120120
/// A multistream-select protocol message.
121121
///
122122
/// Multistream-select protocol messages are exchanged with the goal
123-
/// of agreeing on a application-layer protocol to use on an I/O stream.
123+
/// of agreeing on an application-layer protocol to use on an I/O stream.
124124
#[derive(Debug, Clone, PartialEq, Eq)]
125125
pub(crate) enum Message {
126126
/// A header message identifies the multistream-select protocol

protocols/autonat/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## 0.13.0
1616

17-
- Due to the refactor of `Transport` it's no longer required to create a seperate transport for
17+
- Due to the refactor of `Transport` it's no longer required to create a separate transport for
1818
AutoNAT where port reuse is disabled. This information is now passed by the behaviour.
1919
See [PR 4568](https://github.com/libp2p/rust-libp2p/pull/4568).
2020
- Introduce the new AutoNATv2 protocol.
@@ -34,7 +34,7 @@ AutoNAT where port reuse is disabled. This information is now passed by the beha
3434
## 0.12.0
3535

3636
- Remove `Clone`, `PartialEq` and `Eq` implementations on `Event` and its sub-structs.
37-
The `Event` also contains errors which are not clonable or comparable.
37+
The `Event` also contains errors which are not cloneable or comparable.
3838
See [PR 3914](https://github.com/libp2p/rust-libp2p/pull/3914).
3939

4040
## 0.11.0
@@ -84,7 +84,7 @@ AutoNAT where port reuse is disabled. This information is now passed by the beha
8484

8585
- Update to `libp2p-request-response` `v0.23.0`.
8686

87-
- Replace `Behaviour`'s `NetworkBehaviour` implemention `inject_*` methods with the new `on_*` methods.
87+
- Replace `Behaviour`'s `NetworkBehaviour` implementation `inject_*` methods with the new `on_*` methods.
8888
See [PR 3011].
8989

9090
- Update `rust-version` to reflect the actual MSRV: 1.62.0. See [PR 3090].

0 commit comments

Comments
 (0)