diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/assists.md | 22 |
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 | |||
336 | Makes inaccessible item public. | ||
337 | |||
338 | ```rust | ||
339 | // BEFORE | ||
340 | mod m { | ||
341 | fn frobnicate() {} | ||
342 | } | ||
343 | fn main() { | ||
344 | m::frobnicate┃() {} | ||
345 | } | ||
346 | |||
347 | // AFTER | ||
348 | mod m { | ||
349 | pub(crate) fn frobnicate() {} | ||
350 | } | ||
351 | fn main() { | ||
352 | m::frobnicate() {} | ||
353 | } | ||
354 | ``` | ||
355 | |||
334 | ## `flip_binexpr` | 356 | ## `flip_binexpr` |
335 | 357 | ||
336 | Flips operands of a binary expression. | 358 | Flips operands of a binary expression. |