aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/user/assists.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md
index 006ec4d54..0ae242389 100644
--- a/docs/user/assists.md
+++ b/docs/user/assists.md
@@ -331,6 +331,28 @@ fn handle(action: Action) {
331} 331}
332``` 332```
333 333
334## `fix_visibility`
335
336Makes inaccessible item public.
337
338```rust
339// BEFORE
340mod m {
341 fn frobnicate() {}
342}
343fn main() {
344 m::frobnicate┃() {}
345}
346
347// AFTER
348mod m {
349 pub(crate) fn frobnicate() {}
350}
351fn main() {
352 m::frobnicate() {}
353}
354```
355
334## `flip_binexpr` 356## `flip_binexpr`
335 357
336Flips operands of a binary expression. 358Flips operands of a binary expression.