File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ within.
60
60
* ` iter ` - This borrows each element of the collection through each iteration.
61
61
Thus leaving the collection untouched and available for reuse after the loop.
62
62
63
- ``` rust, editable
63
+ ``` rust,editable
64
64
fn main() {
65
65
let names = vec!["Bob", "Frank", "Ferris"];
66
66
@@ -80,7 +80,7 @@ fn main() {
80
80
data is provided. Once the collection has been consumed it is no longer
81
81
available for reuse as it has been 'moved' within the loop.
82
82
83
- ``` rust, editable, ignore
83
+ ``` rust,editable,ignore,mdbook-runnable
84
84
fn main() {
85
85
let names = vec!["Bob", "Frank", "Ferris"];
86
86
@@ -99,7 +99,7 @@ fn main() {
99
99
* ` iter_mut ` - This mutably borrows each element of the collection, allowing for
100
100
the collection to be modified in place.
101
101
102
- ``` rust, editable
102
+ ``` rust,editable
103
103
fn main() {
104
104
let mut names = vec!["Bob", "Frank", "Ferris"];
105
105
You can’t perform that action at this time.
0 commit comments