mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 09:48:10 +00:00
docs: update assist comment
This commit is contained in:
parent
872df2f413
commit
a310fc0cd5
2 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ use syntax::{ast, AstNode, AstToken, NodeOrToken, SyntaxKind::COMMA, TextRange};
|
|||
// }
|
||||
//
|
||||
// fn main() {
|
||||
// print!("{x + 1}$0");
|
||||
// print!("{var} {x + 1}$0");
|
||||
// }
|
||||
// ```
|
||||
// ->
|
||||
|
@ -36,7 +36,7 @@ use syntax::{ast, AstNode, AstToken, NodeOrToken, SyntaxKind::COMMA, TextRange};
|
|||
// }
|
||||
//
|
||||
// fn main() {
|
||||
// print!("{}"$0, x + 1);
|
||||
// print!("{var} {}"$0, x + 1);
|
||||
// }
|
||||
// ```
|
||||
|
||||
|
|
|
@ -637,7 +637,7 @@ macro_rules! print {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
print!("{x + 1}$0");
|
||||
print!("{var} {x + 1}$0");
|
||||
}
|
||||
"#####,
|
||||
r#####"
|
||||
|
@ -649,7 +649,7 @@ macro_rules! print {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
print!("{}"$0, x + 1);
|
||||
print!("{var} {}"$0, x + 1);
|
||||
}
|
||||
"#####,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue