Skip to content

Commit 199e4e7

Browse files
committed
review
1 parent a9f1e14 commit 199e4e7

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ declare_lint! {
12271227
///
12281228
/// ### Explanation
12291229
///
1230-
/// A public `use` declaration should not be used to publicly re-export a
1230+
/// A public `use` declaration should not be used to publically re-export a
12311231
/// private `extern crate`. `pub extern crate` should be used instead.
12321232
///
12331233
/// This was historically allowed, but is not the intended behavior
@@ -4484,7 +4484,7 @@ declare_lint! {
44844484
///
44854485
/// `refining_impl_trait` is a lint group composed of two lints:
44864486
///
4487-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4487+
/// * `refining_impl_trait_reachable`, for refinements that are publically
44884488
/// reachable outside a crate, and
44894489
/// * `refining_impl_trait_internal`, for refinements that are only visible
44904490
/// within a crate.
@@ -4540,7 +4540,7 @@ declare_lint! {
45404540
///
45414541
/// `refining_impl_trait` is a lint group composed of two lints:
45424542
///
4543-
/// * `refining_impl_trait_reachable`, for refinements that are publicly
4543+
/// * `refining_impl_trait_reachable`, for refinements that are publically
45444544
/// reachable outside a crate, and
45454545
/// * `refining_impl_trait_internal`, for refinements that are only visible
45464546
/// within a crate.

library/core/src/primitive_docs.rs

+2-2
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

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

typos.toml

+6-10
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)