diff --git a/crates/ruff_cache/src/cache_key.rs b/crates/ruff_cache/src/cache_key.rs index 076d1e42d778a..1208c40100300 100644 --- a/crates/ruff_cache/src/cache_key.rs +++ b/crates/ruff_cache/src/cache_key.rs @@ -65,7 +65,7 @@ use seahash::SeaHasher; /// The main reason is that hashes and cache keys have different constraints: /// /// * Cache keys are less performance sensitive: Hashes must be super fast to compute for performant hashed-collections. That's -/// why some standard types don't implement [`Hash`] where it would be safe to to implement [`CacheKey`], e.g. `HashSet` +/// why some standard types don't implement [`Hash`] where it would be safe to implement [`CacheKey`], e.g. `HashSet` /// * Cache keys must be deterministic where hash keys do not have this constraint. That's why pointers don't implement [`CacheKey`] but they implement [`Hash`]. /// * Ideally, cache keys are portable /// diff --git a/crates/ruff_formatter/src/builders.rs b/crates/ruff_formatter/src/builders.rs index 235bed9021a98..188123d976fb4 100644 --- a/crates/ruff_formatter/src/builders.rs +++ b/crates/ruff_formatter/src/builders.rs @@ -138,7 +138,7 @@ pub const fn empty_line() -> Line { /// /// # Examples /// -/// The line breaks are emitted as spaces if the enclosing `Group` fits on a a single line: +/// The line breaks are emitted as spaces if the enclosing `Group` fits on a single line: /// ``` /// use ruff_formatter::{format, format_args}; /// use ruff_formatter::prelude::*;