Skip to content

chore: fix some typos #15316

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 16, 2025
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
4 changes: 2 additions & 2 deletions src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct FileType {
}

impl FileType {
/// The filename for this `FileType` crated by rustc.
/// The filename for this `FileType` created by rustc.
pub fn output_filename(&self, target: &Target, metadata: Option<&str>) -> String {
match metadata {
Some(metadata) => format!(
Expand Down Expand Up @@ -628,7 +628,7 @@ impl TargetInfo {

/// Checks if a target maybe support std.
///
/// If no explictly stated in target spec json, we treat it as "maybe support".
/// If no explicitly stated in target spec json, we treat it as "maybe support".
///
/// This is only useful for `-Zbuild-std` to determine the default set of
/// crates it is going to build.
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ fn list_files_gix(
files.push(PathEntry {
path: file_path,
ty,
// Git index doesn't include files from symlink diretory,
// Git index doesn't include files from symlink directory,
// symlink dirs are handled in `list_files_walk`.
under_symlink_dir: false,
});
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/util/semver_eval_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn matches_exact_prerelease(cmp: &Comparator, ver: &Version) -> bool {
}

// If the comparator has a prerelease tag like =3.0.0-alpha.24,
// then it shoud be only exactly match 3.0.0-alpha.24.
// then it should be only exactly match 3.0.0-alpha.24.
if !cmp.pre.is_empty() {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ Sets the width for progress bar.
* Default: auto-detect
* Environment: `CARGO_TERM_PROGRESS_TERM_INTEGRATION`

Report progress to the teminal emulator for display in places like the task bar.
Report progress to the terminal emulator for display in places like the task bar.

[`cargo bench`]: ../commands/cargo-bench.md
[`cargo login`]: ../commands/cargo-login.md
Expand Down