Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 26c6e33

Browse files
authored
Merge pull request #701 from Angarsk8/dev/update-thread-spawn-snippet
Update prefix on spawn snippet
2 parents c2293a6 + c356465 commit 26c6e33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

snippets/rust.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
"description": "Unwrap Option with if let"
7979
},
8080
"spawn": {
81-
"prefix": "thread::spawn",
81+
"prefix": [
82+
"thread_spawn",
83+
"spawn"
84+
],
8285
"body": [
8386
"thread::spawn(move || {",
8487
"\t$0",

0 commit comments

Comments
 (0)