add desc and examples for inline variable action

This commit is contained in:
gfreezy 2019-03-25 23:14:30 +08:00
parent d88a96bd05
commit 2ca1b2bc8f

View file

@ -270,6 +270,21 @@ fn foo() {
}
```
- Inline local variable:
```rust
// before:
fn foo() {
let a<|> = 1 + 1;
let b = a * 10;
}
// after:
fn foo() {
let b = (1 + 1) * 10;
}
```
-- Remove `dbg!`
```rust