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

Commit 79410f6

Browse files
committed
Make thread_spawn snippet more versatile
Fixes #433
1 parent c3148ce commit 79410f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/rust.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
"spawn"
8484
],
8585
"body": [
86-
"thread::spawn(move || {",
87-
"\t$0",
88-
"});"
86+
"std::thread::spawn(move || {",
87+
"\t$1",
88+
"})$0"
8989
],
9090
"description": "Wrap code in thread::spawn"
9191
},

0 commit comments

Comments
 (0)