Skip to content

Commit 7a33639

Browse files
committed
docs: doc comments typo fixes
1 parent 16bc872 commit 7a33639

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cargo/core/features.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! * Good for: `.cargo/config.toml`, `config.json` index file (gate: `-Z`)
2828
//!
2929
//! For features that touch multiple parts of Cargo, multiple feature gating strategies (error,
30-
//! warn, ignore) and mechnisms (`-Z`, `cargo-features`) may be used.
30+
//! warn, ignore) and mechanisms (`-Z`, `cargo-features`) may be used.
3131
//!
3232
//! When adding new tests for your feature, usually the tests should go into a
3333
//! new module of the testsuite named after the feature. See
@@ -513,7 +513,7 @@ features! {
513513

514514
/// Status and metadata for a single unstable feature.
515515
pub struct Feature {
516-
/// Feature name. This is valid Rust identifer so no dash only underscore.
516+
/// Feature name. This is valid Rust identifier so no dash only underscore.
517517
name: &'static str,
518518
stability: Status,
519519
/// Version that this feature was stabilized or removed.

src/cargo/sources/registry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ impl RegistryConfig {
967967
const NAME: &'static str = "config.json";
968968
}
969969

970-
/// Get the maximum upack size that Cargo permits
970+
/// Get the maximum unpack size that Cargo permits
971971
/// based on a given `size` of your compressed file.
972972
///
973973
/// Returns the larger one between `size * max compression ratio`

src/cargo/util/cache_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ impl CacheLocker {
513513
///
514514
/// Note that `Shared` will return true if a `MutateExclusive` lock is
515515
/// held, since `MutateExclusive` is just an upgraded `Shared`. Likewise,
516-
/// `DownlaodExclusive` will return true if a `MutateExclusive` lock is
516+
/// `DownloadExclusive` will return true if a `MutateExclusive` lock is
517517
/// held since they overlap.
518518
pub fn is_locked(&self, mode: CacheLockMode) -> bool {
519519
let state = self.state.borrow();

0 commit comments

Comments
 (0)