Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1151

Merged
merged 1 commit into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub trait CenterRightNumbers {
// these are now aligned to the center right by having this trait return " "
// instead of "". This is prepended to the format string. In the case of " "
// the trailing " " must then be removed so everything is shifted to the right.
// This asumes no special padding characters, i.e. the default of space.
// This assumes no special padding characters, i.e. the default of space.
fn center_right_space(&self, alignment: Align, width: usize) -> &'static str;
}

Expand Down
6 changes: 3 additions & 3 deletions src/utils/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ pub mod tests {
// When calling `FakeParentArgs::get()`, it can return `Some(values)` which were set earlier
// during in the #[test]. Otherwise returns None.
// This value can be valid once: `FakeParentArgs::once(val)`, for the entire scope:
// `FakeParentArgs::for_scope(val)`, or can be different values everytime `get()` is called:
// `FakeParentArgs::for_scope(val)`, or can be different values every time `get()` is called:
// `FakeParentArgs::with([val1, val2, val3])`.
// It is an error if `once` or `with` values remain unused, or are overused.
// Note: The values are stored per-thread, so the expectation is that no thread boundaries are
Expand Down Expand Up @@ -890,7 +890,7 @@ pub mod tests {
fn test_process_testing_assert_never_used() {
let _args = FakeParentArgs::once("never used");

// causes a panic while panicing, so can't test:
// causes a panic while panicking, so can't test:
// let _args = FakeParentArgs::for_scope(&"never used");
// let _args = FakeParentArgs::once(&"never used");
}
Expand Down Expand Up @@ -939,7 +939,7 @@ pub mod tests {
calling_process_cmdline(ProcInfo::new(), guess_git_blame_filename_extension),
Some("once".into())
);
// ignored: dropping causes a panic while panicing, so can't test
// ignored: dropping causes a panic while panicking, so can't test
calling_process_cmdline(ProcInfo::new(), guess_git_blame_filename_extension);
}

Expand Down