Skip to content

Commit

Permalink
docs: doc comments typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Apr 30, 2024
1 parent 16bc872 commit 7a33639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//! * Good for: `.cargo/config.toml`, `config.json` index file (gate: `-Z`)
//!
//! For features that touch multiple parts of Cargo, multiple feature gating strategies (error,
//! warn, ignore) and mechnisms (`-Z`, `cargo-features`) may be used.
//! warn, ignore) and mechanisms (`-Z`, `cargo-features`) may be used.
//!
//! When adding new tests for your feature, usually the tests should go into a
//! new module of the testsuite named after the feature. See
Expand Down Expand Up @@ -513,7 +513,7 @@ features! {

/// Status and metadata for a single unstable feature.
pub struct Feature {
/// Feature name. This is valid Rust identifer so no dash only underscore.
/// Feature name. This is valid Rust identifier so no dash only underscore.
name: &'static str,
stability: Status,
/// Version that this feature was stabilized or removed.
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ impl RegistryConfig {
const NAME: &'static str = "config.json";
}

/// Get the maximum upack size that Cargo permits
/// Get the maximum unpack size that Cargo permits
/// based on a given `size` of your compressed file.
///
/// Returns the larger one between `size * max compression ratio`
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/util/cache_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ impl CacheLocker {
///
/// Note that `Shared` will return true if a `MutateExclusive` lock is
/// held, since `MutateExclusive` is just an upgraded `Shared`. Likewise,
/// `DownlaodExclusive` will return true if a `MutateExclusive` lock is
/// `DownloadExclusive` will return true if a `MutateExclusive` lock is
/// held since they overlap.
pub fn is_locked(&self, mode: CacheLockMode) -> bool {
let state = self.state.borrow();
Expand Down

0 comments on commit 7a33639

Please sign in to comment.