migrate codebase to ..= inclusive range patterns
These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
This commit is contained in:
@@ -843,11 +843,11 @@ pub struct Local {
|
||||
|
||||
/// An arm of a 'match'.
|
||||
///
|
||||
/// E.g. `0...10 => { println!("match!") }` as in
|
||||
/// E.g. `0..=10 => { println!("match!") }` as in
|
||||
///
|
||||
/// ```
|
||||
/// match 123 {
|
||||
/// 0...10 => { println!("match!") },
|
||||
/// 0..=10 => { println!("match!") },
|
||||
/// _ => { println!("no match!") },
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user