about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-07-24 19:06:26 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-07-24 19:06:26 +0200
commit79f052bd4fa7f695a96515c44c5a72e75cf782ee (patch)
treea7653e609923e83b0c4471b293f872adec1bd311 /src/libstd
parentb36479fcf8d4694ca29fdcc0c7fb1507a6da21c5 (diff)
downloadrust-79f052bd4fa7f695a96515c44c5a72e75cf782ee.tar.gz
rust-79f052bd4fa7f695a96515c44c5a72e75cf782ee.zip
Fix nits
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/keyword_docs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index f29bd99173a..ea1b9f3672f 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -1005,11 +1005,11 @@ mod pub_keyword {}
 ///     Some(n) => println!("Hello, {}", n),
 ///     _ => println!("Hello, world"),
 /// }
-/// // ... and now unavailable.
+/// // ... and is now unavailable.
 /// println!("Hello again, {}", maybe_name.unwrap_or("world".into()));
 /// ```
 ///
-/// Using the `ref` keyword, the value is only borrowed, not moved, making
+/// Using the `ref` keyword, the value is only borrowed, not moved, making it
 /// available for use after the [`match`] statement:
 ///
 /// ```
@@ -1019,7 +1019,7 @@ mod pub_keyword {}
 ///     Some(ref n) => println!("Hello, {}", n),
 ///     _ => println!("Hello, world"),
 /// }
-/// // ... and it's available here !
+/// // ... so it's available here!
 /// println!("Hello again, {}", maybe_name.unwrap_or("world".into()));
 /// ```
 ///