diff options
Diffstat (limited to '.emacs.d/snippets/rust-mode/whilel')
| -rw-r--r-- | .emacs.d/snippets/rust-mode/whilel | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/whilel b/.emacs.d/snippets/rust-mode/whilel new file mode 100644 index 0000000..9137014 --- /dev/null +++ b/.emacs.d/snippets/rust-mode/whilel | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: while let pattern = expression { ... } | ||
| 3 | # key: whilel | ||
| 4 | # -- | ||
| 5 | while let ${1:pattern} = ${2:expression} { | ||
| 6 | $0 | ||
| 7 | } | ||
