Skip to content

Commit 6fde7f1

Browse files
bors[bot]bnjjj
andauthored
Merge #4432
4432: Update features.md r=matklad a=bnjjj Co-authored-by: Coenen Benjamin <[email protected]>
2 parents 62730ae + 76af4a1 commit 6fde7f1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/user/features.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ takes arguments, the cursor is positioned inside the parenthesis.
143143
There are postfix completions, which can be triggered by typing something like
144144
`foo().if`. The word after `.` determines postfix completion. Possible variants are:
145145

146-
- `expr.if` -> `if expr {}`
146+
- `expr.if` -> `if expr {}` or `if let ... {}` for `Option` or `Result`
147147
- `expr.match` -> `match expr {}`
148-
- `expr.while` -> `while expr {}`
148+
- `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result`
149149
- `expr.ref` -> `&expr`
150150
- `expr.refm` -> `&mut expr`
151151
- `expr.not` -> `!expr`
@@ -161,6 +161,16 @@ There also snippet completions:
161161
#### Inside Modules
162162

163163
- `tfn` -> `#[test] fn f(){}`
164+
- `tmod` ->
165+
```rust
166+
#[cfg(test)]
167+
mod tests {
168+
use super::*;
169+
170+
#[test]
171+
fn test_fn() {}
172+
}
173+
```
164174

165175
### Code Highlighting
166176

0 commit comments

Comments
 (0)