Skip to content

Commit

Permalink
Fix 'trait' -> 'struct'; PI -> a. Thanks!
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbiedert committed Aug 24, 2023
1 parent 9cb0467 commit dbd4019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5552,7 +5552,7 @@ Many users would expect your collection to _just work_ in `for` loops. You need

{{ tablesep() }}

> As you can see, the **IntoIterator** {{ std(page="std/iter/trait.IntoIterator.html") }} trait is what actually connects your collection with the **IntoIter** trait you created in the previous tab.
> As you can see, the **IntoIterator** {{ std(page="std/iter/trait.IntoIterator.html") }} trait is what actually connects your collection with the **IntoIter** struct you created in the previous tab.

</div></panel></tab>
Expand Down Expand Up @@ -6106,7 +6106,7 @@ Each argument designator in format macro is either empty `{}`, `{argument}`, or
|---------|-------------|
| `println!("{}", x)` | Print `x` using `Display`{{ std(page="std/fmt/trait.Display.html") }} on std. out and append new line. {{ edition(ed="'15") }} {{ deprecated() }} |
| `println!("{x}")` | Same, but use variable `x` from scope. {{ edition(ed="'21") }} |
| `format!("{a:.3} {b:?}")` | Convert `PI` with 3 digits, add space, b with `Debug` {{ std(page="std/fmt/trait.Debug.html") }}, return `String`. {{ edition(ed="'21") }} |
| `format!("{a:.3} {b:?}")` | Convert `a` with 3 digits, add space, b with `Debug` {{ std(page="std/fmt/trait.Debug.html") }}, return `String`. {{ edition(ed="'21") }} |

</div>

Expand Down

0 comments on commit dbd4019

Please sign in to comment.