From 76af4a18db701820e28cf6c939a266e2f09fd58f Mon Sep 17 00:00:00 2001 From: Coenen Benjamin Date: Tue, 12 May 2020 09:46:28 +0200 Subject: Update features.md --- docs/user/features.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/user/features.md b/docs/user/features.md index b9a365fc1..340bce835 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -143,9 +143,9 @@ takes arguments, the cursor is positioned inside the parenthesis. There are postfix completions, which can be triggered by typing something like `foo().if`. The word after `.` determines postfix completion. Possible variants are: -- `expr.if` -> `if expr {}` +- `expr.if` -> `if expr {}` or `if let ... {}` for `Option` or `Result` - `expr.match` -> `match expr {}` -- `expr.while` -> `while expr {}` +- `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result` - `expr.ref` -> `&expr` - `expr.refm` -> `&mut expr` - `expr.not` -> `!expr` @@ -161,6 +161,16 @@ There also snippet completions: #### Inside Modules - `tfn` -> `#[test] fn f(){}` +- `tmod` -> +```rust +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_fn() {} +} +``` ### Code Highlighting -- cgit v1.2.3