@@ -70,7 +70,7 @@ mod as_keyword {}
7070/// A break expression is normally associated with the innermost loop enclosing the
7171/// `break` but a label can be used to specify which enclosing loop is affected.
7272///
73- ///```rust
73+ /// ```rust
7474/// 'outer: for i in 1..=5 {
7575/// println!("outer iteration (i): {i}");
7676///
@@ -87,7 +87,7 @@ mod as_keyword {}
8787/// }
8888/// }
8989/// println!("Bye.");
90- ///```
90+ /// ```
9191///
9292/// When associated with `loop`, a break expression may be used to return a value from that loop.
9393/// This is only valid with `loop` and not with any other type of loop.
@@ -194,20 +194,20 @@ mod const_keyword {}
194194/// When `continue` is encountered, the current iteration is terminated, returning control to the
195195/// loop head, typically continuing with the next iteration.
196196///
197- ///```rust
197+ /// ```rust
198198/// // Printing odd numbers by skipping even ones
199199/// for number in 1..=10 {
200200/// if number % 2 == 0 {
201201/// continue;
202202/// }
203203/// println!("{number}");
204204/// }
205- ///```
205+ /// ```
206206///
207207/// Like `break`, `continue` is normally associated with the innermost enclosing loop, but labels
208208/// may be used to specify the affected loop.
209209///
210- ///```rust
210+ /// ```rust
211211/// // Print Odd numbers under 30 with unit <= 5
212212/// 'tens: for ten in 0..3 {
213213/// '_units: for unit in 0..=9 {
@@ -220,7 +220,7 @@ mod const_keyword {}
220220/// println!("{}", ten * 10 + unit);
221221/// }
222222/// }
223- ///```
223+ /// ```
224224///
225225/// See [continue expressions] from the reference for more details.
226226///
0 commit comments