Skip to content

Commit 3e0d987

Browse files
authored
Merge pull request #1415 from EmilLuta/make-non-compiling-for-loop-example-runnable
Make flow_control/for/.into_iter() example run
2 parents 551cc4b + 53960f3 commit 3e0d987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flow_control/for.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ within.
6060
* `iter` - This borrows each element of the collection through each iteration.
6161
Thus leaving the collection untouched and available for reuse after the loop.
6262

63-
```rust, editable
63+
```rust,editable
6464
fn main() {
6565
let names = vec!["Bob", "Frank", "Ferris"];
6666
@@ -80,7 +80,7 @@ fn main() {
8080
data is provided. Once the collection has been consumed it is no longer
8181
available for reuse as it has been 'moved' within the loop.
8282

83-
```rust, editable, ignore
83+
```rust,editable,ignore,mdbook-runnable
8484
fn main() {
8585
let names = vec!["Bob", "Frank", "Ferris"];
8686
@@ -99,7 +99,7 @@ fn main() {
9999
* `iter_mut` - This mutably borrows each element of the collection, allowing for
100100
the collection to be modified in place.
101101

102-
```rust, editable
102+
```rust,editable
103103
fn main() {
104104
let mut names = vec!["Bob", "Frank", "Ferris"];
105105

0 commit comments

Comments
 (0)