diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-08-06 22:17:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-06 22:17:35 -0500 |
| commit | 701bc03c52fd411f1b7f86072903602ad92a45e7 (patch) | |
| tree | 983441d8b5e7ce5291d5556681c4c0041d7d94ef /library/std/src | |
| parent | 6ccb3569f898a25c153ef27ea3b653c778235947 (diff) | |
| parent | f34ff1e05a219b0762c3683f8c2aabf6477cae71 (diff) | |
| download | rust-701bc03c52fd411f1b7f86072903602ad92a45e7.tar.gz rust-701bc03c52fd411f1b7f86072903602ad92a45e7.zip | |
Rollup merge of #128766 - Monadic-Cat:patch-1, r=tgross35
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.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/keyword_docs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index c82228fca4b..9f4d244b547 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -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 |
