]> git.lizzy.rs Git - rust.git/commitdiff
Fix nits
authorAlexis Bourget <alexis.bourget@gmail.com>
Fri, 24 Jul 2020 17:06:26 +0000 (19:06 +0200)
committerAlexis Bourget <alexis.bourget@gmail.com>
Fri, 24 Jul 2020 17:06:26 +0000 (19:06 +0200)
src/libstd/keyword_docs.rs

index f29bd99173ae0a07505bf588cbe66b395c356022..ea1b9f3672fe3d3dbf260b6dafb9352828d88e5a 100644 (file)
@@ -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()));
 /// ```
 ///