Skip to content

Commit

Permalink
Rollup merge of rust-lang#128766 - Monadic-Cat:patch-1, r=tgross35
Browse files Browse the repository at this point in the history
Trivial grammar fix in const keyword docs

This PR makes a trivial fix to the wording of a sentence in the `const` keyword docs.

> `const` items looks remarkably similar to `static` items, [...]

Either this should be written as
> A `const` items looks remarkably similar to a `static` item, [...]

or "looks" should be changed to "look".

I have selected the smaller diff.
  • Loading branch information
tgross35 authored Aug 7, 2024
2 parents 5d7906c + 83d1d16 commit b90a026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ mod break_keyword {}
/// const WORDS: &str = "hello convenience!";
/// ```
///
/// `const` items looks remarkably similar to `static` items, which introduces some confusion as
/// `const` items look remarkably similar to `static` items, which introduces some confusion as
/// to which one should be used at which times. To put it simply, constants are inlined wherever
/// they're used, making using them identical to simply replacing the name of the `const` with its
/// value. Static variables, on the other hand, point to a single location in memory, which all
Expand Down

0 comments on commit b90a026

Please sign in to comment.