Skip to content

Commit 4c5376e

Browse files
committed
review
1 parent 81b0b11 commit 4c5376e

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ declare_lint! {
12261226
///
12271227
/// ### Explanation
12281228
///
1229-
/// A public `use` declaration should not be used to publicly re-export a
1229+
/// A public `use` declaration should not be used to publically re-export a
12301230
/// private `extern crate`. `pub extern crate` should be used instead.
12311231
///
12321232
/// This was historically allowed, but is not the intended behavior
@@ -4476,7 +4476,7 @@ declare_lint! {
44764476
///
44774477
/// `refining_impl_trait` is a lint group composed of two lints:
44784478
///
4479-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4479+
/// * `refining_impl_trait_reachable`, for refinements that are publically
44804480
/// reachable outside a crate, and
44814481
/// * `refining_impl_trait_internal`, for refinements that are only visible
44824482
/// within a crate.
@@ -4532,7 +4532,7 @@ declare_lint! {
45324532
///
45334533
/// `refining_impl_trait` is a lint group composed of two lints:
45344534
///
4535-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4535+
/// * `refining_impl_trait_reachable`, for refinements that are publically
45364536
/// reachable outside a crate, and
45374537
/// * `refining_impl_trait_internal`, for refinements that are only visible
45384538
/// within a crate.

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ mod prim_ref {}
16281628
/// let ptr: fn(usize) -> usize = add_one;
16291629
/// assert_eq!(ptr(5), 6);
16301630
///
1631-
/// let closure: fn(usize) -> usize = |x| x + 5;
1632-
/// assert_eq!(closure(5), 10);
1631+
/// let clos: fn(usize) -> usize = |x| x + 5;
1632+
/// assert_eq!(clos(5), 10);
16331633
/// ```
16341634
///
16351635
/// In addition to varying based on their signature, function pointers come in two flavors: safe

library/std/src/sys/pal/unix/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ impl Instant {
260260
// https://www.manpagez.com/man/3/clock_gettime/
261261
//
262262
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
263-
// ner as CLOCK_MONOTONIC_RAW, but that does not increment
264-
// while the system is asleep. The returned value
263+
// ner as CLOCK_MONOTONIC_RAW, but that does not incre-
264+
// ment while the system is asleep. The returned value
265265
// is identical to the result of mach_absolute_time()
266266
// after the appropriate mach_timebase conversion is
267267
// applied.

typos.toml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,28 @@ extend-exclude = [
1515
# Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
1616
#
1717
# Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
18-
thir = "thir"
19-
padd = "padd"
2018
rplace = "rplace"
2119
arange = "arange"
22-
rela = "rela"
2320
unstalled = "unstalled"
2421
taits = "taits"
2522
Datas = "Datas"
2623
splitted = "splitted"
2724
leafs = "leafs"
28-
Lits = "Lits"
2925
makro = "makro"
3026
optin = "optin"
31-
parm = "parm"
3227
unparseable = "unparseable"
33-
matcheable = "matcheable"
3428
smove = "smove"
3529
childs = "childs"
3630
filetimes = "filetimes"
3731
misformed = "misformed"
3832
targetting = "targetting"
3933
publically = "publically"
4034

35+
# this can be valid word, depends on dictionary edition
36+
#matcheable = "matcheable"
37+
4138
[default.extend-identifiers]
42-
# Entries goes here if typo is part of some existing ident
39+
# An entry goes here if the typo is part of some existing ident
4340
# where you want to keep it, but don't want to allow
4441
# such typos everywhere.
4542
#
@@ -53,13 +50,12 @@ ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = "ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
5350
ERROR_MCA_OCCURED = "ERROR_MCA_OCCURED"
5451
ERRNO_ACCES = "ERRNO_ACCES"
5552
tolen = "tolen"
56-
pard = "pard"
5753
numer = "numer"
5854

5955
[default]
6056
extend-ignore-words-re = [
61-
# words with length <= 3 chars is likely noise
62-
"^[a-zA-Z]{1,3}$",
57+
# words with length <= 4 chars is likely noise
58+
"^[a-zA-Z]{1,4}$",
6359
]
6460

6561
extend-ignore-re = [

0 commit comments

Comments
 (0)