Skip to content

Commit 83d1d16

Browse files
authored
Trivial grammar fix in 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.
1 parent 9cc3bc6 commit 83d1d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: std/src/keyword_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ mod break_keyword {}
155155
/// const WORDS: &str = "hello convenience!";
156156
/// ```
157157
///
158-
/// `const` items looks remarkably similar to `static` items, which introduces some confusion as
158+
/// `const` items look remarkably similar to `static` items, which introduces some confusion as
159159
/// to which one should be used at which times. To put it simply, constants are inlined wherever
160160
/// they're used, making using them identical to simply replacing the name of the `const` with its
161161
/// value. Static variables, on the other hand, point to a single location in memory, which all

0 commit comments

Comments
 (0)