Skip to content

Commit 54a4fd1

Browse files
camelidJoshua Nelson
and
Joshua Nelson
authored
Minor improvements
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 294c116 commit 54a4fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/keyword_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ mod break_keyword {}
115115
/// let foo = 123 + THING;
116116
/// ```
117117
///
118-
/// Constants must be explicitly typed; unlike with `let`, you can't ignore its type and let the
118+
/// Constants must be explicitly typed; unlike with `let`, you can't ignore their type and let the
119119
/// compiler figure it out. Any constant value can be defined in a `const`, which in practice happens
120120
/// to be most things that would be reasonable to have in a constant (barring `const fn`s). For
121121
/// example, you can't have a [`File`] as a `const`.
@@ -143,7 +143,7 @@ mod break_keyword {}
143143
/// accesses share. This means that, unlike with constants, they can't have destructors, and act as
144144
/// a single value across the entire codebase.
145145
///
146-
/// Constants, as with statics, should always be in `SCREAMING_SNAKE_CASE`.
146+
/// Constants, like statics, should always be in `SCREAMING_SNAKE_CASE`.
147147
///
148148
/// The `const` keyword is also used in raw pointers in combination with `mut`, as seen in `*const
149149
/// T` and `*mut T`. More about that usage can be read at the Rust docs for the [pointer primitive].

0 commit comments

Comments
 (0)