Skip to content

Commit 9894740

Browse files
committed
Some typo fixes
1 parent 94b4fcf commit 9894740

File tree

20 files changed

+28
-28
lines changed

20 files changed

+28
-28
lines changed

src/tools/compiletest/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ pub struct Config {
381381
/// Whether to rerun tests even if the inputs are unchanged.
382382
pub force_rerun: bool,
383383

384-
/// Only rerun the tests that result has been modified accoring to Git status
384+
/// Only rerun the tests that result has been modified according to Git status
385385
pub only_modified: bool,
386386

387387
pub target_cfgs: OnceLock<TargetCfgs>,

src/tools/compiletest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ fn is_android_gdb_target(target: &str) -> bool {
950950
)
951951
}
952952

953-
/// Returns `true` if the given target is a MSVC target for the purpouses of CDB testing.
953+
/// Returns `true` if the given target is a MSVC target for the purposes of CDB testing.
954954
fn is_pc_windows_msvc_target(target: &str) -> bool {
955955
target.ends_with("-pc-windows-msvc")
956956
}

src/tools/jsondoclint/src/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const LOCAL_CRATE_ID: u32 = 0;
2121
/// it is well formed. This involves calling `check_*` functions on
2222
/// fields of that item, and `add_*` functions on [`Id`]s.
2323
/// - `add_*`: These add an [`Id`] to the worklist, after validating it to check if
24-
/// the `Id` is a kind expected in this suituation.
24+
/// the `Id` is a kind expected in this situation.
2525
#[derive(Debug)]
2626
pub struct Validator<'a> {
2727
pub(crate) errs: Vec<Error>,

src/tools/lld-wrapper/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Script to invoke the bundled rust-lld with the correct flavor.
22
//!
3-
//! lld supports multiple command line interfaces. If `-flavor <flavor>` are passed as the first
3+
//! `lld` supports multiple command line interfaces. If `-flavor <flavor>` are passed as the first
44
//! two arguments the `<flavor>` command line interface is used to process the remaining arguments.
55
//! If no `-flavor` argument is present the flavor is determined by the executable name.
66
//!

src/tools/miri/cargo-miri/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub fn get_target_dir(meta: &Metadata) -> PathBuf {
269269
output
270270
}
271271

272-
/// Determines where the sysroot of this exeuction is
272+
/// Determines where the sysroot of this execution is
273273
///
274274
/// Either in a user-specified spot by an envar, or in a default cache location.
275275
pub fn get_sysroot_dir() -> PathBuf {

src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::borrow_tracker::{
99
};
1010
use crate::ProvenanceExtra;
1111

12-
/// Exactly what cache size we should use is a difficult tradeoff. There will always be some
12+
/// Exactly what cache size we should use is a difficult trade-off. There will always be some
1313
/// workload which has a `BorTag` working set which exceeds the size of the cache, and ends up
1414
/// falling back to linear searches of the borrow stack very often.
1515
/// The cost of making this value too large is that the loop in `Stack::insert` which ensures the

src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ struct DisplayFmtWrapper {
390390
warning_text: S,
391391
}
392392

393-
/// Formating of the permissions on each range.
393+
/// Formatting of the permissions on each range.
394394
///
395395
/// Example:
396396
/// ```rust,ignore (private type)
@@ -422,7 +422,7 @@ struct DisplayFmtPermission {
422422
range_sep: S,
423423
}
424424

425-
/// Formating of the tree structure.
425+
/// Formatting of the tree structure.
426426
///
427427
/// Example:
428428
/// ```rust,ignore (private type)
@@ -487,7 +487,7 @@ struct DisplayFmtAccess {
487487
meh: S,
488488
}
489489

490-
/// All parameters to determine how the tree is formated.
490+
/// All parameters to determine how the tree is formatted.
491491
struct DisplayFmt {
492492
wrapper: DisplayFmtWrapper,
493493
perm: DisplayFmtPermission,

src/tools/miri/src/borrow_tracker/tree_borrows/perms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Permission {
202202
Self { inner: Frozen }
203203
}
204204

205-
/// Default initial permission of the root of a new tre at out-of-bounds positions.
205+
/// Default initial permission of the root of a new tree at out-of-bounds positions.
206206
/// Must *only* be used for the root, this is not in general an "initial" permission!
207207
pub fn new_disabled() -> Self {
208208
Self { inner: Disabled }

src/tools/miri/src/borrow_tracker/tree_borrows/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ impl Tree {
704704
}
705705

706706
/// Traverses the entire tree looking for useless tags.
707-
/// Returns true iff the tag it was called on is still live or has live children,
707+
/// Returns true if the tag it was called on is still live or has live children,
708708
/// and removes from the tree all tags that have no live children.
709709
///
710710
/// NOTE: This leaves in the middle of the tree tags that are unreachable but have

src/tools/miri/src/borrow_tracker/tree_borrows/tree/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mod spurious_read {
483483
/// that causes UB in the target but not in the source.
484484
/// This implementation simply explores the reachable space
485485
/// by all sequences of `TestEvent`.
486-
/// This function can be instanciated with `RetX` and `RetY`
486+
/// This function can be instantiated with `RetX` and `RetY`
487487
/// among `NoRet` or `AllowRet` to resp. forbid/allow `x`/`y` to lose their
488488
/// protector.
489489
fn distinguishable<RetX, RetY>(&self, other: &Self) -> bool

0 commit comments

Comments
 (0)