aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarco Groppo <[email protected]>2019-03-26 19:26:16 +0000
committerMarco Groppo <[email protected]>2019-03-26 19:26:16 +0000
commit6030d6f500e42bde012a391666b68363d8479d21 (patch)
tree42c799a75b1803afe1838818de86cebe9674c38a /docs
parent12b5d4f795f69f7fa07051cdec7a1347d3aa7924 (diff)
parent1011e37f3a260b0565f88c84d3c49fac1ec7b879 (diff)
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer into flip-binexpr
Diffstat (limited to 'docs')
-rw-r--r--docs/user/features.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/docs/user/features.md b/docs/user/features.md
index b9d2aa84f..7173d88e9 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -210,7 +210,7 @@ fn main() {
210} 210}
211``` 211```
212 212
213-- Fill struct fields 213- Fill struct fields
214 214
215```rust 215```rust
216// before: 216// before:
@@ -270,7 +270,22 @@ fn foo() {
270} 270}
271``` 271```
272 272
273-- Remove `dbg!` 273- Inline local variable:
274
275```rust
276// before:
277fn foo() {
278 let a<|> = 1 + 1;
279 let b = a * 10;
280}
281
282// after:
283fn foo() {
284 let b = (1 + 1) * 10;
285}
286```
287
288- Remove `dbg!`
274 289
275```rust 290```rust
276// before: 291// before: