diff --git a/src/tools/miri/cargo-miri/src/phases.rs b/src/tools/miri/cargo-miri/src/phases.rs index b72b974bdbdd6..1fe3765ac9647 100644 --- a/src/tools/miri/cargo-miri/src/phases.rs +++ b/src/tools/miri/cargo-miri/src/phases.rs @@ -283,7 +283,7 @@ pub fn phase_rustc(mut args: impl Iterator, phase: RustcPhase) { fn is_runnable_crate() -> bool { // Determine whether this is cargo invoking rustc to get some infos. Ideally we'd check "is // there a filename passed to rustc", but that's very hard as we would have to know whether - // e.g. `--print foo` is a booolean flag `--print` followed by filename `foo` or equivalent + // e.g. `--print foo` is a boolean flag `--print` followed by filename `foo` or equivalent // to `--print=foo`. So instead we use this more fragile approach of detecting the presence // of a "query" flag rather than the absence of a filename. let info_query = get_arg_flag_value("--print").is_some() || has_arg_flag("-vV"); diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs index 9aaad9ca04a9a..3853df1619a2c 100644 --- a/src/tools/miri/miri-script/src/commands.rs +++ b/src/tools/miri/miri-script/src/commands.rs @@ -584,7 +584,7 @@ impl Command { // Compare results (inspired by hyperfine) let ratio = new_result.mean / baseline_result.mean; // https://en.wikipedia.org/wiki/Propagation_of_uncertainty#Example_formulae - // Covariance asssumed to be 0, i.e. variables are assumed to be independent + // Covariance assumed to be 0, i.e. variables are assumed to be independent let ratio_stddev = ratio * f64::sqrt( (new_result.stddev / new_result.mean).powi(2) diff --git a/src/tools/miri/miri-script/src/main.rs b/src/tools/miri/miri-script/src/main.rs index e41df662ca28f..564e92017ded9 100644 --- a/src/tools/miri/miri-script/src/main.rs +++ b/src/tools/miri/miri-script/src/main.rs @@ -135,7 +135,7 @@ pub enum Command { }, /// Update and activate the rustup toolchain 'miri'. /// - /// The `rust-version` file is used to determine the commit that will be intsalled. + /// The `rust-version` file is used to determine the commit that will be installed. /// `rustup-toolchain-install-master` must be installed for this to work. Toolchain { /// Flags that are passed through to `rustup-toolchain-install-master`. diff --git a/src/tools/miri/tests/pass/issues/issue-139553.rs b/src/tools/miri/tests/pass/issues/issue-139553.rs index 119d589d1eada..99ac00d339717 100644 --- a/src/tools/miri/tests/pass/issues/issue-139553.rs +++ b/src/tools/miri/tests/pass/issues/issue-139553.rs @@ -11,7 +11,7 @@ fn main() { let t1 = thread::spawn(move || { // 1. The first action executed is an attempt to send the first value in the channel. This - // will begin to initialize the channel but will stop at a critical momement as + // will begin to initialize the channel but will stop at a critical moment as // indicated by the `yield_now()` call in the `start_send` method of the implementation. let _ = s1.send(42); // 4. The sender is re-scheduled and it finishes the initialization of the channel by