Skip to content

Commit 26a87d6

Browse files
authored
chore: fix some typos (#15316)
<!-- Thanks for submitting a pull request 🎉! Here are some tips for you: * If this is your first contribution, read "Cargo Contribution Guide" first: https://doc.crates.io/contrib/ * Run `cargo fmt --all` to format your code changes. * Small commits and pull requests are always preferable and easy to review. * If your idea is large and needs feedback from the community, read how: https://doc.crates.io/contrib/process/#working-on-large-features * Cargo takes care of compatibility. Read our design principles: https://doc.crates.io/contrib/design.html * When changing help text of cargo commands, follow the steps to generate docs: https://github.com/rust-lang/cargo/tree/master/src/doc#building-the-man-pages * If your PR is not finished, set it as "draft" PR or add "WIP" in its title. * It's ok to use the CI resources to test your PR, but please don't abuse them. ### What does this PR try to resolve? ### How should we test and review this PR? Demonstrate how you test this change and guide reviewers through your PR. With a smooth review process, a pull request usually gets reviewed quicker. If you don't know how to write and run your tests, please read the guide: https://doc.crates.io/contrib/tests ### Additional information Other information you want to mention in this PR, such as prior arts, future extensions, an unresolved problem, or a TODO list. --> fix some typos
2 parents 437ff04 + 20a05ba commit 26a87d6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/cargo/core/compiler/build_context/target_info.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub struct FileType {
9797
}
9898

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

629629
/// Checks if a target maybe support std.
630630
///
631-
/// If no explictly stated in target spec json, we treat it as "maybe support".
631+
/// If no explicitly stated in target spec json, we treat it as "maybe support".
632632
///
633633
/// This is only useful for `-Zbuild-std` to determine the default set of
634634
/// crates it is going to build.

src/cargo/sources/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ fn list_files_gix(
839839
files.push(PathEntry {
840840
path: file_path,
841841
ty,
842-
// Git index doesn't include files from symlink diretory,
842+
// Git index doesn't include files from symlink directory,
843843
// symlink dirs are handled in `list_files_walk`.
844844
under_symlink_dir: false,
845845
});

src/cargo/util/semver_eval_ext.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn matches_exact_prerelease(cmp: &Comparator, ver: &Version) -> bool {
160160
}
161161

162162
// If the comparator has a prerelease tag like =3.0.0-alpha.24,
163-
// then it shoud be only exactly match 3.0.0-alpha.24.
163+
// then it should be only exactly match 3.0.0-alpha.24.
164164
if !cmp.pre.is_empty() {
165165
return false;
166166
}

src/doc/src/reference/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ Sets the width for progress bar.
13671367
* Default: auto-detect
13681368
* Environment: `CARGO_TERM_PROGRESS_TERM_INTEGRATION`
13691369

1370-
Report progress to the teminal emulator for display in places like the task bar.
1370+
Report progress to the terminal emulator for display in places like the task bar.
13711371

13721372
[`cargo bench`]: ../commands/cargo-bench.md
13731373
[`cargo login`]: ../commands/cargo-login.md

0 commit comments

Comments
 (0)