diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/assists.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index ecf206f71..c36c5df6a 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -209,6 +209,24 @@ fn main() { | |||
209 | } | 209 | } |
210 | ``` | 210 | ``` |
211 | 211 | ||
212 | ## `auto_import` | ||
213 | |||
214 | If the name is unresolved, provides all possible imports for it. | ||
215 | |||
216 | ```rust | ||
217 | // BEFORE | ||
218 | fn main() { | ||
219 | let map = HashMap┃::new(); | ||
220 | } | ||
221 | |||
222 | // AFTER | ||
223 | use std::collections::HashMap; | ||
224 | |||
225 | fn main() { | ||
226 | let map = HashMap┃::new(); | ||
227 | } | ||
228 | ``` | ||
229 | |||
212 | ## `change_visibility` | 230 | ## `change_visibility` |
213 | 231 | ||
214 | Adds or changes existing visibility specifier. | 232 | Adds or changes existing visibility specifier. |