Skip to content

Commit a310fc0

Browse files
unvalleyVeykril
authored andcommitted
docs: update assist comment
1 parent 872df2f commit a310fc0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use syntax::{ast, AstNode, AstToken, NodeOrToken, SyntaxKind::COMMA, TextRange};
2323
// }
2424
//
2525
// fn main() {
26-
// print!("{x + 1}$0");
26+
// print!("{var} {x + 1}$0");
2727
// }
2828
// ```
2929
// ->
@@ -36,7 +36,7 @@ use syntax::{ast, AstNode, AstToken, NodeOrToken, SyntaxKind::COMMA, TextRange};
3636
// }
3737
//
3838
// fn main() {
39-
// print!("{}"$0, x + 1);
39+
// print!("{var} {}"$0, x + 1);
4040
// }
4141
// ```
4242

crates/ide-assists/src/tests/generated.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ macro_rules! print {
637637
}
638638
639639
fn main() {
640-
print!("{x + 1}$0");
640+
print!("{var} {x + 1}$0");
641641
}
642642
"#####,
643643
r#####"
@@ -649,7 +649,7 @@ macro_rules! print {
649649
}
650650
651651
fn main() {
652-
print!("{}"$0, x + 1);
652+
print!("{var} {}"$0, x + 1);
653653
}
654654
"#####,
655655
)

0 commit comments

Comments
 (0)