Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Jul 24, 2020
1 parent b36479f commit 79f052b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
///
/// ```
Expand All @@ -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()));
/// ```
///
Expand Down

0 comments on commit 79f052b

Please sign in to comment.