diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-05-25 07:08:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-25 07:08:45 +0900 |
| commit | c3fea092080f83c06cfe9ed8841ff69d6f82a746 (patch) | |
| tree | a93506f2842b474173e0769c5661aa35500085a3 | |
| parent | 7ed7f65bac59d6c6aa138af96686a82638c109d3 (diff) | |
| parent | 1d19462a45083d49568a1fc69895671e714c6196 (diff) | |
| download | rust-c3fea092080f83c06cfe9ed8841ff69d6f82a746.tar.gz rust-c3fea092080f83c06cfe9ed8841ff69d6f82a746.zip | |
Rollup merge of #97364 - notriddle:continue-keyword, r=JohnTitor
Fix weird indentation in continue_keyword docs This format was causing every line in the code examples to have a space at the start.
| -rw-r--r-- | library/std/src/keyword_docs.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index bc2384c88d2..6dcd55cc937 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -70,7 +70,7 @@ mod as_keyword {} /// A break expression is normally associated with the innermost loop enclosing the /// `break` but a label can be used to specify which enclosing loop is affected. /// -///```rust +/// ```rust /// 'outer: for i in 1..=5 { /// println!("outer iteration (i): {i}"); /// @@ -87,7 +87,7 @@ mod as_keyword {} /// } /// } /// println!("Bye."); -///``` +/// ``` /// /// When associated with `loop`, a break expression may be used to return a value from that loop. /// This is only valid with `loop` and not with any other type of loop. @@ -194,7 +194,7 @@ mod const_keyword {} /// When `continue` is encountered, the current iteration is terminated, returning control to the /// loop head, typically continuing with the next iteration. /// -///```rust +/// ```rust /// // Printing odd numbers by skipping even ones /// for number in 1..=10 { /// if number % 2 == 0 { @@ -202,12 +202,12 @@ mod const_keyword {} /// } /// println!("{number}"); /// } -///``` +/// ``` /// /// Like `break`, `continue` is normally associated with the innermost enclosing loop, but labels /// may be used to specify the affected loop. /// -///```rust +/// ```rust /// // Print Odd numbers under 30 with unit <= 5 /// 'tens: for ten in 0..3 { /// '_units: for unit in 0..=9 { @@ -220,7 +220,7 @@ mod const_keyword {} /// println!("{}", ten * 10 + unit); /// } /// } -///``` +/// ``` /// /// See [continue expressions] from the reference for more details. /// |
