aboutsummaryrefslogtreecommitdiff
path: root/docs/user/assists.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-27 14:50:27 +0000
committerGitHub <[email protected]>2019-10-27 14:50:27 +0000
commitf6588b86768fe426ff85dd0c5c838193a8f27d48 (patch)
tree97e3213d449e6237d1a20f99e9e82ede19215b20 /docs/user/assists.md
parentcf309b6a5f2d51e9509568ab82446cc3eae29f94 (diff)
parentb6fcacd96d26e7edaf37bda852b8b3ad104d4c90 (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.md14
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
141Adds a use statement for a given fully-qualified path.
142
143```rust
144// BEFORE
145fn process(map: std::collections::┃HashMap<String, String>) {}
146
147// AFTER
148use std::collections::HashMap;
149
150fn process(map: HashMap<String, String>) {}
151```
152
139## `apply_demorgan` 153## `apply_demorgan`
140 154
141Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). 155Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws).