Skip to content

Commit 631fa15

Browse files
committed
Auto merge of rust-lang#147826 - Muscraft:update-typos, r=Noratrieb
Update typos I saw that `typos` was a few versions out of date and figured it would be a good idea to update it. Upgrading to `1.38.1` adds the [July](crate-ci/typos#1331), [August](crate-ci/typos#1345), and [September](crate-ci/typos#1370) dictionary updates. As part of this change, I also sorted the configuration file.
2 parents edbe160 + 75f5697 commit 631fa15

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

alloc/src/collections/vec_deque/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ fn test_rotate_right_panic() {
367367

368368
#[test]
369369
fn test_binary_search() {
370-
// If the givin VecDeque is not sorted, the returned result is unspecified and meaningless,
370+
// If the given VecDeque is not sorted, the returned result is unspecified and meaningless,
371371
// as this method performs a binary search.
372372

373373
let tester: VecDeque<_> = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55].into();
@@ -391,7 +391,7 @@ fn test_binary_search() {
391391

392392
#[test]
393393
fn test_binary_search_by() {
394-
// If the givin VecDeque is not sorted, the returned result is unspecified and meaningless,
394+
// If the given VecDeque is not sorted, the returned result is unspecified and meaningless,
395395
// as this method performs a binary search.
396396

397397
let tester: VecDeque<_> = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55].into();
@@ -406,7 +406,7 @@ fn test_binary_search_by() {
406406

407407
#[test]
408408
fn test_binary_search_key() {
409-
// If the givin VecDeque is not sorted, the returned result is unspecified and meaningless,
409+
// If the given VecDeque is not sorted, the returned result is unspecified and meaningless,
410410
// as this method performs a binary search.
411411

412412
let tester: VecDeque<_> = [

core/src/asserting.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ where
7373

7474
// ***** Others *****
7575

76+
//spellchecker:off
7677
/// All possible captured `assert!` elements
7778
///
7879
/// # Types
7980
///
8081
/// * `E`: **E**lement that is going to be displayed.
8182
/// * `M`: **M**arker used to differentiate [Capture]s in regards to [Debug].
83+
//spellchecker:on
8284
#[unstable(feature = "generic_assert_internals", issue = "44838")]
8385
pub struct Capture<E, M> {
8486
// If None, then `E` does not implements [Printable] or `E` wasn't evaluated (`assert!( ... )`

core/src/panic/unwind_safe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ pub auto trait UnwindSafe {}
101101
#[rustc_diagnostic_item = "ref_unwind_safe_trait"]
102102
#[diagnostic::on_unimplemented(
103103
message = "the type `{Self}` may contain interior mutability and a reference may not be safely \
104-
transferrable across a catch_unwind boundary",
104+
transferable across a catch_unwind boundary",
105105
label = "`{Self}` may contain interior mutability and a reference may not be safely \
106-
transferrable across a catch_unwind boundary"
106+
transferable across a catch_unwind boundary"
107107
)]
108108
pub auto trait RefUnwindSafe {}
109109

std/src/sys/fs/vexos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl FilePermissions {
106106
}
107107

108108
pub fn set_readonly(&mut self, _readonly: bool) {
109-
panic!("Perimissions do not exist")
109+
panic!("Permissions do not exist")
110110
}
111111
}
112112

std/src/sys/pal/uefi/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pub(crate) mod system_time_internal {
181181
/// The changes are to use 1900-01-01-00:00:00 with timezone -1440 as anchor instead of UNIX
182182
/// epoch used in the original algorithm.
183183
pub(crate) const fn to_uefi(dur: &Duration, timezone: i16, daylight: u8) -> Option<Time> {
184-
// Check timzone validity
184+
// Check timezone validity
185185
assert!(timezone <= 1440 && timezone >= -1440);
186186

187187
// FIXME(#126043): use checked_sub_signed once stabilized

0 commit comments

Comments
 (0)