about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamelid <37223377+camelid@users.noreply.github.com>2020-09-01 17:38:16 -0700
committerGitHub <noreply@github.com>2020-09-01 17:38:16 -0700
commit54a4fd1eb9418e2ea8313e66cde525930cc191ae (patch)
tree46f649b10120600fe37c8d51bb3717f045d60784
parent294c1160bb693a77ad2683321b9196352bd837dc (diff)
downloadrust-54a4fd1eb9418e2ea8313e66cde525930cc191ae.tar.gz
rust-54a4fd1eb9418e2ea8313e66cde525930cc191ae.zip
Minor improvements
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--library/std/src/keyword_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs
index 7e94d05d78d..d15b5ba0b15 100644
--- a/library/std/src/keyword_docs.rs
+++ b/library/std/src/keyword_docs.rs
@@ -115,7 +115,7 @@ mod break_keyword {}
 /// let foo = 123 + THING;
 /// ```
 ///
-/// Constants must be explicitly typed; unlike with `let`, you can't ignore its type and let the
+/// Constants must be explicitly typed; unlike with `let`, you can't ignore their type and let the
 /// compiler figure it out. Any constant value can be defined in a `const`, which in practice happens
 /// to be most things that would be reasonable to have in a constant (barring `const fn`s). For
 /// example, you can't have a [`File`] as a `const`.
@@ -143,7 +143,7 @@ mod break_keyword {}
 /// accesses share. This means that, unlike with constants, they can't have destructors, and act as
 /// a single value across the entire codebase.
 ///
-/// Constants, as with statics, should always be in `SCREAMING_SNAKE_CASE`.
+/// Constants, like statics, should always be in `SCREAMING_SNAKE_CASE`.
 ///
 /// The `const` keyword is also used in raw pointers in combination with `mut`, as seen in `*const
 /// T` and `*mut T`. More about that usage can be read at the Rust docs for the [pointer primitive].