diff options
Diffstat (limited to 'crates/ide_assists/src/handlers')
-rw-r--r-- | crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs b/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs index 661a3fbeb..ed15f169e 100644 --- a/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs +++ b/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs | |||
@@ -10,7 +10,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
10 | // | 10 | // |
11 | // Converts an Iterator::for_each function into a for loop. | 11 | // Converts an Iterator::for_each function into a for loop. |
12 | // | 12 | // |
13 | // ```rust | 13 | // ``` |
14 | // fn main() { | 14 | // fn main() { |
15 | // let vec = vec![(1, 2), (2, 3), (3, 4)]; | 15 | // let vec = vec![(1, 2), (2, 3), (3, 4)]; |
16 | // x.iter().for_each(|(x, y)| { | 16 | // x.iter().for_each(|(x, y)| { |
@@ -19,7 +19,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
19 | // } | 19 | // } |
20 | // ``` | 20 | // ``` |
21 | // -> | 21 | // -> |
22 | // ```rust | 22 | // ``` |
23 | // fn main() { | 23 | // fn main() { |
24 | // let vec = vec![(1, 2), (2, 3), (3, 4)]; | 24 | // let vec = vec![(1, 2), (2, 3), (3, 4)]; |
25 | // for (x, y) in x.iter() { | 25 | // for (x, y) in x.iter() { |