aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/assists.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md
index 6c6943622..02323772c 100644
--- a/docs/user/assists.md
+++ b/docs/user/assists.md
@@ -695,3 +695,21 @@ use std::┃collections::HashMap;
695// AFTER 695// AFTER
696use std::{collections::HashMap}; 696use std::{collections::HashMap};
697``` 697```
698
699## `unwrap_block`
700
701Removes the `mut` keyword.
702
703```rust
704// BEFORE
705fn foo() {
706 if true {┃
707 println!("foo");
708 }
709}
710
711// AFTER
712fn foo() {
713 ┃println!("foo");
714}
715```