about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-09-25 22:34:44 +0200
committerGitHub <noreply@github.com>2018-09-25 22:34:44 +0200
commit9ea345d9d010c1ac8806d503e4a1dfa804dd4018 (patch)
tree17711072a12a9a0afa6299e743a1d733f5519aa1 /src/libstd
parentcf3c385fef4d8bc071f51ecdb1004e73c7fe8a9b (diff)
parent1b9da678114a6485f7bb20ba382c52097f6bfb29 (diff)
downloadrust-9ea345d9d010c1ac8806d503e4a1dfa804dd4018.tar.gz
rust-9ea345d9d010c1ac8806d503e4a1dfa804dd4018.zip
Rollup merge of #54522 - gardrek:patch-1, r=TimNN
Fixed three small typos.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/primitive_docs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs
index 4c1fdc4f895..8d54728a75f 100644
--- a/src/libstd/primitive_docs.rs
+++ b/src/libstd/primitive_docs.rs
@@ -208,7 +208,7 @@ mod prim_bool { }
 /// # `!` and traits
 ///
 /// When writing your own traits, `!` should have an `impl` whenever there is an obvious `impl`
-/// which doesn't `panic!`. As is turns out, most traits can have an `impl` for `!`. Take [`Debug`]
+/// which doesn't `panic!`. As it turns out, most traits can have an `impl` for `!`. Take [`Debug`]
 /// for example:
 ///
 /// ```
@@ -228,9 +228,9 @@ mod prim_bool { }
 /// [`fmt::Result`]. Since this method takes a `&!` as an argument we know that it can never be
 /// called (because there is no value of type `!` for it to be called with). Writing `*self`
 /// essentially tells the compiler "We know that this code can never be run, so just treat the
-/// entire function body has having type [`fmt::Result`]". This pattern can be used a lot when
+/// entire function body as having type [`fmt::Result`]". This pattern can be used a lot when
 /// implementing traits for `!`. Generally, any trait which only has methods which take a `self`
-/// parameter should have such as impl.
+/// parameter should have such an impl.
 ///
 /// On the other hand, one trait which would not be appropriate to implement is [`Default`]:
 ///