Skip to content

Commit f32e11a

Browse files
authored
Merge pull request rust-lang#535 from Xanewok/print-snippet
Add print! snippet and don't suggest "{}" in print(ln!) macro snippets
2 parents 0c74071 + a517d54 commit f32e11a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

snippets/rust.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,17 @@
2929
],
3030
"description": "Insert unreachable!"
3131
},
32+
"print": {
33+
"prefix": "print",
34+
"body": [
35+
"print!(\"$1\", $2)$0"
36+
],
37+
"description": "Insert print!"
38+
},
3239
"println": {
3340
"prefix": "println",
3441
"body": [
35-
"println!(\"${1:{\\}}\", $2)$0"
42+
"println!(\"$1\", $2)$0"
3643
],
3744
"description": "Insert println!"
3845
},

0 commit comments

Comments
 (0)