@@ -70,7 +70,7 @@ mod as_keyword {}
70
70
/// A break expression is normally associated with the innermost loop enclosing the
71
71
/// `break` but a label can be used to specify which enclosing loop is affected.
72
72
///
73
- ///```rust
73
+ /// ```rust
74
74
/// 'outer: for i in 1..=5 {
75
75
/// println!("outer iteration (i): {i}");
76
76
///
@@ -87,7 +87,7 @@ mod as_keyword {}
87
87
/// }
88
88
/// }
89
89
/// println!("Bye.");
90
- ///```
90
+ /// ```
91
91
///
92
92
/// When associated with `loop`, a break expression may be used to return a value from that loop.
93
93
/// This is only valid with `loop` and not with any other type of loop.
@@ -194,20 +194,20 @@ mod const_keyword {}
194
194
/// When `continue` is encountered, the current iteration is terminated, returning control to the
195
195
/// loop head, typically continuing with the next iteration.
196
196
///
197
- ///```rust
197
+ /// ```rust
198
198
/// // Printing odd numbers by skipping even ones
199
199
/// for number in 1..=10 {
200
200
/// if number % 2 == 0 {
201
201
/// continue;
202
202
/// }
203
203
/// println!("{number}");
204
204
/// }
205
- ///```
205
+ /// ```
206
206
///
207
207
/// Like `break`, `continue` is normally associated with the innermost enclosing loop, but labels
208
208
/// may be used to specify the affected loop.
209
209
///
210
- ///```rust
210
+ /// ```rust
211
211
/// // Print Odd numbers under 30 with unit <= 5
212
212
/// 'tens: for ten in 0..3 {
213
213
/// '_units: for unit in 0..=9 {
@@ -220,7 +220,7 @@ mod const_keyword {}
220
220
/// println!("{}", ten * 10 + unit);
221
221
/// }
222
222
/// }
223
- ///```
223
+ /// ```
224
224
///
225
225
/// See [continue expressions] from the reference for more details.
226
226
///
0 commit comments