diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-27 14:50:27 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-27 14:50:27 +0000 |
commit | f6588b86768fe426ff85dd0c5c838193a8f27d48 (patch) | |
tree | 97e3213d449e6237d1a20f99e9e82ede19215b20 /docs/user/assists.md | |
parent | cf309b6a5f2d51e9509568ab82446cc3eae29f94 (diff) | |
parent | b6fcacd96d26e7edaf37bda852b8b3ad104d4c90 (diff) |
Merge #2095
2095: move all assists to use generated docs r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs/user/assists.md')
-rw-r--r-- | docs/user/assists.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index b1fe44d84..303353e74 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -136,6 +136,20 @@ impl T for () { | |||
136 | } | 136 | } |
137 | ``` | 137 | ``` |
138 | 138 | ||
139 | ## `add_import` | ||
140 | |||
141 | Adds a use statement for a given fully-qualified path. | ||
142 | |||
143 | ```rust | ||
144 | // BEFORE | ||
145 | fn process(map: std::collections::┃HashMap<String, String>) {} | ||
146 | |||
147 | // AFTER | ||
148 | use std::collections::HashMap; | ||
149 | |||
150 | fn process(map: HashMap<String, String>) {} | ||
151 | ``` | ||
152 | |||
139 | ## `apply_demorgan` | 153 | ## `apply_demorgan` |
140 | 154 | ||
141 | Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). | 155 | Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). |