Skip to content

Commit 8435a45

Browse files
authored
docs: fix typos discovered by codespell (#2534)
## Description <!-- A summary of what this pull request achieves and a rough list of changes. --> % `codespell --ignore-words-list=ans,crate,inout,ratatui,ser,stayin,swarmin,worl` * https://github.com/codespell-project/codespell ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented.
1 parent 2964569 commit 8435a45

File tree

13 files changed

+20
-13
lines changed

13 files changed

+20
-13
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,3 +450,10 @@ jobs:
450450
continue-on-error: true
451451
run: |
452452
docker kill $(docker ps -q)
453+
454+
codespell:
455+
runs-on: ubuntu-latest
456+
steps:
457+
- uses: actions/checkout@master
458+
- run: pip install --user codespell[toml]
459+
- run: codespell --ignore-words-list=ans,crate,inout,ratatui,ser,stayin,swarmin,worl --skip=CHANGELOG.md

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Code contributions to Iroh are greatly appreciated. Here is the general workflow
3434

3535
- **General code guidelines**
3636

37-
- When possible, please document relevant pieces of code following the [rust documentation conventions][docconventions]. For more information on how the rust documentation system works check the [rustdoc docummentation][rustdoc].
37+
- When possible, please document relevant pieces of code following the [rust documentation conventions][docconventions]. For more information on how the rust documentation system works check the [rustdoc documentation][rustdoc].
3838
- Comment your code. It will be useful for your reviewer and future contributors.
3939

4040
- **Pull request titles**

iroh-dns-server/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl ZoneStore {
5757
Ok(Self::new(packet_store))
5858
}
5959

60-
/// Configure a pkarr client for resolution of packets from the bittorent mainline DHT.
60+
/// Configure a pkarr client for resolution of packets from the bittorrent mainline DHT.
6161
///
6262
/// This will be used only as a fallback if there is no local info available.
6363
///

iroh-docs/src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ pub struct DefaultAuthor {
393393
impl DefaultAuthor {
394394
/// Load the default author from storage.
395395
///
396-
/// If the storage is empty creates a new author and perists it.
396+
/// If the storage is empty creates a new author and persists it.
397397
pub async fn load(storage: DefaultAuthorStorage, docs_store: &SyncHandle) -> Result<Self> {
398398
let value = storage.load(docs_store).await?;
399399
Ok(Self {

iroh-net/bench/src/iroh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn transport_config(max_streams: usize, initial_mtu: u16) -> TransportConfig
8181
config.max_concurrent_uni_streams(max_streams.try_into().unwrap());
8282
config.initial_mtu(initial_mtu);
8383

84-
// TODO: reenable when we upgrade quinn version
84+
// TODO: re-enable when we upgrade quinn version
8585
// let mut acks = quinn::AckFrequencyConfig::default();
8686
// acks.ack_eliciting_threshold(10u32.into());
8787
// config.ack_frequency_config(Some(acks));

iroh-net/bench/src/quinn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn transport_config(max_streams: usize, initial_mtu: u16) -> TransportConfig
9797
config.max_concurrent_uni_streams(max_streams.try_into().unwrap());
9898
config.initial_mtu(initial_mtu);
9999

100-
// TODO: reenable when we upgrade quinn version
100+
// TODO: re-enable when we upgrade quinn version
101101
// let mut acks = quinn::AckFrequencyConfig::default();
102102
// acks.ack_eliciting_threshold(10u32.into());
103103
// config.ack_frequency_config(Some(acks));

iroh-net/src/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<A: Iterator<Item = IpAddr>, B: Iterator<Item = IpAddr>> Iterator for Lookup
342342
/// Staggers calls to the future F with the given delays.
343343
///
344344
/// The first call is performed immediately. The first call to succeed generates an Ok result
345-
/// ignoring any previous error. If all calls fail, an error sumarizing all errors is returned.
345+
/// ignoring any previous error. If all calls fail, an error summarizing all errors is returned.
346346
async fn stagger_call<T, F: Fn() -> Fut, Fut: Future<Output = Result<T>>>(
347347
f: F,
348348
delays_ms: &[u64],

iroh-net/src/magicsock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ impl Stream for DirectAddrsStream {
15541554
// When we start up we might initially have empty local endpoints as
15551555
// the magic socket has not yet figured this out. Later on this set
15561556
// should never be empty. However even if it was the magicsock
1557-
// would be in a state not very useable so skipping those events is
1557+
// would be in a state not very usable so skipping those events is
15581558
// probably fine.
15591559
// To make sure we install the right waker we loop rather than
15601560
// returning Poll::Pending immediately here.

iroh-net/src/netcheck/reportgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ mod tests {
13391339
node: Arc::new(relay),
13401340
};
13411341

1342-
// A singe ICMP packet might get lost. Try several and take the first.
1342+
// A single ICMP packet might get lost. Try several and take the first.
13431343
let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel();
13441344
let mut tasks = JoinSet::new();
13451345
for i in 0..8 {

iroh-net/src/netcheck/reportgen/probes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl ProbePlan {
203203
let mut plan = Self(BTreeSet::new());
204204

205205
// The first time we need add probes after the STUN we record this delay, so that
206-
// further relay server can re-use this delay.
206+
// further relay server can reuse this delay.
207207
let mut max_stun_delay: Option<Duration> = None;
208208

209209
for relay_node in relay_map.nodes() {
@@ -284,7 +284,7 @@ impl ProbePlan {
284284
let mut plan = Self(Default::default());
285285

286286
// The first time we need add probes after the STUN we record this delay, so that
287-
// further relay servers can re-use this delay.
287+
// further relay servers can reuse this delay.
288288
let mut max_stun_delay: Option<Duration> = None;
289289

290290
let had_stun_ipv4 = !last_report.relay_v4_latency.is_empty();

0 commit comments

Comments
 (0)