mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:42:02 +00:00
chore: remove repetitive words (#10952)
This commit is contained in:
parent
49d9ad4c7e
commit
f9214f95bb
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ use seahash::SeaHasher;
|
||||||
/// The main reason is that hashes and cache keys have different constraints:
|
/// 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
|
/// * 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`].
|
/// * 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
|
/// * Ideally, cache keys are portable
|
||||||
///
|
///
|
||||||
|
|
|
@ -138,7 +138,7 @@ pub const fn empty_line() -> Line {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # 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::{format, format_args};
|
||||||
/// use ruff_formatter::prelude::*;
|
/// use ruff_formatter::prelude::*;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue