Skip to content

Commit b31c9d5

Browse files
authored
Rollup merge of #134922 - ericlehong:fix/typos, r=lqd
Fix typos This PR fixes typos errors in comments, docs and logs. Thank you very much.
2 parents 4b9e3da + a0b3452 commit b31c9d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/etc/test-float-parse/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
These are tests designed to test decimal to float conversions (`dec2flt`) used
44
by the standard library.
55

6-
It consistes of a collection of test generators that each generate a set of
6+
It consists of a collection of test generators that each generate a set of
77
patterns intended to test a specific property. In addition, there are exhaustive
88
tests (for <= `f32`) and fuzzers (for anything that can't be run exhaustively).
99

src/etc/test-float-parse/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const DEFAULT_MAX_FAILURES: u64 = 20;
3535
/// Register exhaustive tests only for <= 32 bits. No more because it would take years.
3636
const MAX_BITS_FOR_EXHAUUSTIVE: u32 = 32;
3737

38-
/// If there are more tests than this threashold, the test will be defered until after all
38+
/// If there are more tests than this threshold, the test will be deferred until after all
3939
/// others run (so as to avoid thread pool starvation). They also can be excluded with
4040
/// `--skip-huge`.
4141
const HUGE_TEST_CUTOFF: u64 = 5_000_000;
@@ -109,7 +109,7 @@ pub fn run(cfg: Config, include: &[String], exclude: &[String]) -> ExitCode {
109109
ui::finish(&tests, elapsed, &cfg)
110110
}
111111

112-
/// Enumerate tests to run but don't actaully run them.
112+
/// Enumerate tests to run but don't actually run them.
113113
pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
114114
let mut tests = Vec::new();
115115

@@ -120,7 +120,7 @@ pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
120120
tests.sort_unstable_by_key(|t| (t.float_name, t.gen_name));
121121
for i in 0..(tests.len() - 1) {
122122
if tests[i].gen_name == tests[i + 1].gen_name {
123-
panic!("dupliate test name {}", tests[i].gen_name);
123+
panic!("duplicate test name {}", tests[i].gen_name);
124124
}
125125
}
126126

@@ -295,7 +295,7 @@ enum Update {
295295
fail: CheckFailure,
296296
/// String for which parsing was attempted.
297297
input: Box<str>,
298-
/// The parsed & decomposed `FloatRes`, aleady stringified so we don't need generics here.
298+
/// The parsed & decomposed `FloatRes`, already stringified so we don't need generics here.
299299
float_res: Box<str>,
300300
},
301301
/// Exited with an unexpected condition.

src/tools/suggest-tests/src/static_suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::sync::OnceLock;
22

33
use crate::{Suggestion, sug};
44

5-
// FIXME: perhaps this could use `std::lazy` when it is stablizied
5+
// FIXME: perhaps this could use `std::lazy` when it is stabilized
66
macro_rules! static_suggestions {
77
($( [ $( $glob:expr ),* $(,)? ] => [ $( $suggestion:expr ),* $(,)? ] ),* $(,)? ) => {
88
pub(crate) fn static_suggestions() -> &'static [(Vec<&'static str>, Vec<Suggestion>)]

0 commit comments

Comments
 (0)