Skip to content

Commit 487ea32

Browse files
authored
fix!: typos (#490)
* chore: fix typos * ci: integrate typos checker * fix: alls -> allocs causes shadowing, but the shawoing makes perfect sense * style: new line at eof
1 parent b0d5662 commit 487ea32

File tree

89 files changed

+175
-158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+175
-158
lines changed

.github/workflows/cargo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
working-directory: "C:\\a\\webrtc\\webrtc"
8989
run: cargo test --features metrics
9090

91-
rustfmt_and_clippy:
91+
quality:
9292
name: Check formatting style and run clippy
9393
runs-on: ubuntu-latest
9494
steps:
@@ -116,3 +116,5 @@ jobs:
116116
with:
117117
command: fmt
118118
args: --all -- --check
119+
- name: Check for typos
120+
uses: crate-ci/typos@master

_typos.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[type.po]
2+
extend-glob = ["*.csr"]
3+
check-file = false
4+
5+
[default.extend-words]
6+
# Additionals is important for WebRTC
7+
additionals = "additionals"
8+
# STAP-A for WebRTC
9+
stap = "stap"
10+
# MIS value
11+
mis = "mis"
12+
# datas is used a lot for plural.
13+
datas = "datas"
14+
# 2nd for second
15+
2nd = "2nd"

constraints/src/algorithms/fitness_distance/value_constraint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl_numeric_value_constraint!(setting: i64, constraint: u64);
160160
impl_numeric_value_constraint!(setting: i64, constraint: f64);
161161
impl_numeric_value_constraint!(setting: f64, constraint: u64);
162162

163-
// Specialized implementations for boolean value constraints of mis-matching
163+
// Specialized implementations for boolean value constraints of mismatching
164164
// and thus either "existence"-checked or ignored setting types:
165165
macro_rules! impl_exists_value_constraint {
166166
(settings: [$($s:ty),+], constraint: bool) => {

constraints/src/algorithms/fitness_distance/value_range_constraint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl_value_range_constraint!(setting: i64, constraint: u64);
142142
impl_value_range_constraint!(setting: i64, constraint: f64);
143143
impl_value_range_constraint!(setting: f64, constraint: u64);
144144

145-
// Specialized implementations for non-boolean value constraints of mis-matching,
145+
// Specialized implementations for non-boolean value constraints of mismatching,
146146
// and thus ignored setting types:
147147
macro_rules! impl_ignored_value_range_constraint {
148148
(settings: [$($s:ty),+], constraint: $c:ty) => {

constraints/src/algorithms/select_settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ where
107107
// # Important
108108
// Instead of return just ONE settings instance "with the smallest fitness distance, as calculated in step 3"
109109
// we instead return ALL settings instances "with the smallest fitness distance, as calculated in step 3"
110-
// and leave tie-breaking to the User Agent in a seperate step:
110+
// and leave tie-breaking to the User Agent in a separate step:
111111
Ok(select_optimal_candidates(candidates))
112112
}
113113

data/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
## v0.5.0
2424

2525
* [#16 [PollDataChannel] reset shutdown_fut future after done](https://github.com/webrtc-rs/data/pull/16) by [@melekes](https://github.com/melekes).
26-
* Increase min verison of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
26+
* Increase min version of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
2727

2828
## Prior to 0.4.0
2929

dtls/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
## v0.6.0
1919

2020
* [#254 [DTLS] Add NamedCurve::P384](https://github.com/webrtc-rs/webrtc/pull/254) contributed by [neonphog](https://github.com/neonphog)
21-
* Increased min verison of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
21+
* Increased min version of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
2222
* Increased serde's minimum version to 1.0.110 [#243 Fixes for cargo minimal-versions](https://github.com/webrtc-rs/webrtc/pull/243) contributed by [algesten](https://github.com/algesten)
2323

2424
## Prior to 0.6.0

dtls/src/conn/conn_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ async fn send_client_hello(
23742374
// a ClientHello contained that extension or not
23752375
#[cfg(not(target_os = "windows"))] // this times out in CI on windows.
23762376
#[tokio::test]
2377-
async fn test_renegotation_info() -> Result<()> {
2377+
async fn test_renegotiation_info() -> Result<()> {
23782378
let mut resp = vec![0u8; 1024];
23792379

23802380
let tests = vec![
@@ -2440,13 +2440,13 @@ async fn test_renegotation_info() -> Result<()> {
24402440
}
24412441
};
24422442

2443-
let got_negotation_info = server_hello
2443+
let got_negotiation_info = server_hello
24442444
.extensions
24452445
.iter()
24462446
.any(|v| matches!(v, Extension::RenegotiationInfo(_)));
24472447

24482448
assert!(
2449-
got_negotation_info,
2449+
got_negotiation_info,
24502450
"{name}: Received ServerHello without RenegotiationInfo"
24512451
);
24522452

dtls/src/extension/renegotiation_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::error::Error::ErrInvalidPacketLength;
77
const RENEGOTIATION_INFO_HEADER_SIZE: usize = 5;
88

99
/// RenegotiationInfo allows a Client/Server to
10-
/// communicate their renegotation support
10+
/// communicate their renegotiation support
1111
/// https://tools.ietf.org/html/rfc5746
1212
#[derive(Clone, Debug, PartialEq, Eq)]
1313
pub struct ExtensionRenegotiationInfo {

dtls/src/flight/flight4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl Flight for Flight4 {
269269
state.peer_certificates_verified = verified
270270
} else if !state.peer_certificates.is_empty() {
271271
// A certificate was received, but we haven't seen a CertificateVerify
272-
// keep reading until we receieve one
272+
// keep reading until we receive one
273273
return Err((None, None));
274274
}
275275

0 commit comments

Comments
 (0)