add grammer fixes
This commit is contained in:
parent
7c3befc7f9
commit
e638f7c1ab
1 changed files with 2 additions and 2 deletions
|
@ -814,7 +814,7 @@ mod loop_keyword { }
|
||||||
///
|
///
|
||||||
/// `match` can be used to run code conditionally. Every pattern must
|
/// `match` can be used to run code conditionally. Every pattern must
|
||||||
/// be handled exhaustively either explicitly or by using wildcards like
|
/// be handled exhaustively either explicitly or by using wildcards like
|
||||||
/// `_` in the `match`. Since `match` is an expression values can also be
|
/// `_` in the `match`. Since `match` is an expression, values can also be
|
||||||
/// returned.
|
/// returned.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
@ -874,7 +874,7 @@ mod mod_keyword { }
|
||||||
///
|
///
|
||||||
/// `move` converts any variables captured by reference or mutable reference
|
/// `move` converts any variables captured by reference or mutable reference
|
||||||
/// to owned by value variables. The three [`Fn` trait]'s mirror the ways to capture
|
/// to owned by value variables. The three [`Fn` trait]'s mirror the ways to capture
|
||||||
/// variables, when `move` is used the closures is represented by the `FnOnce` trait.
|
/// variables, when `move` is used, the closures is represented by the `FnOnce` trait.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let capture = "hello";
|
/// let capture = "hello";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue