Skip to content

Commit 7c85b94

Browse files
committed
review
1 parent b36a2e0 commit 7c85b94

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
@@ -1224,7 +1224,7 @@ declare_lint! {
12241224
///
12251225
/// ### Explanation
12261226
///
1227-
/// A public `use` declaration should not be used to publicly re-export a
1227+
/// A public `use` declaration should not be used to publically re-export a
12281228
/// private `extern crate`. `pub extern crate` should be used instead.
12291229
///
12301230
/// This was historically allowed, but is not the intended behavior
@@ -4394,7 +4394,7 @@ declare_lint! {
43944394
///
43954395
/// `refining_impl_trait` is a lint group composed of two lints:
43964396
///
4397-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4397+
/// * `refining_impl_trait_reachable`, for refinements that are publically
43984398
/// reachable outside a crate, and
43994399
/// * `refining_impl_trait_internal`, for refinements that are only visible
44004400
/// within a crate.
@@ -4450,7 +4450,7 @@ declare_lint! {
44504450
///
44514451
/// `refining_impl_trait` is a lint group composed of two lints:
44524452
///
4453-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4453+
/// * `refining_impl_trait_reachable`, for refinements that are publically
44544454
/// reachable outside a crate, and
44554455
/// * `refining_impl_trait_internal`, for refinements that are only visible
44564456
/// within a crate.

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,8 +1690,8 @@ mod prim_ref {}
16901690
/// let ptr: fn(usize) -> usize = add_one;
16911691
/// assert_eq!(ptr(5), 6);
16921692
///
1693-
/// let closure: fn(usize) -> usize = |x| x + 5;
1694-
/// assert_eq!(closure(5), 10);
1693+
/// let clos: fn(usize) -> usize = |x| x + 5;
1694+
/// assert_eq!(clos(5), 10);
16951695
/// ```
16961696
///
16971697
/// 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
@@ -265,8 +265,8 @@ impl Instant {
265265
// https://www.manpagez.com/man/3/clock_gettime/
266266
//
267267
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
268-
// ner as CLOCK_MONOTONIC_RAW, but that does not increment
269-
// while the system is asleep. The returned value
268+
// ner as CLOCK_MONOTONIC_RAW, but that does not incre-
269+
// ment while the system is asleep. The returned value
270270
// is identical to the result of mach_absolute_time()
271271
// after the appropriate mach_timebase conversion is
272272
// 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)