aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJess Balint <[email protected]>2020-05-22 15:20:43 +0100
committerJess Balint <[email protected]>2020-05-22 15:20:43 +0100
commit6594235dd80d337dd7bfaa8be876ba5e111526b1 (patch)
tree91b11567bc1e21f41ebdadf00904311cc23327b1 /docs
parent1fae96a8d4fb452216906f8909d421ad884fd929 (diff)
Remove doc using `cargo xtask codegen`.
Diffstat (limited to 'docs')
-rw-r--r--docs/user/assists.md24
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md
index 29b64330e..4ad7ea59d 100644
--- a/docs/user/assists.md
+++ b/docs/user/assists.md
@@ -259,30 +259,6 @@ fn main() {
259} 259}
260``` 260```
261 261
262## `change_lifetime_anon_to_named`
263
264Change an anonymous lifetime to a named lifetime.
265
266```rust
267// BEFORE
268impl Cursor<'_<|>> {
269 fn node(self) -> &SyntaxNode {
270 match self {
271 Cursor::Replace(node) | Cursor::Before(node) => node,
272 }
273 }
274}
275
276// AFTER
277impl<'a> Cursor<'a> {
278 fn node(self) -> &SyntaxNode {
279 match self {
280 Cursor::Replace(node) | Cursor::Before(node) => node,
281 }
282 }
283}
284```
285
286## `change_return_type_to_result` 262## `change_return_type_to_result`
287 263
288Change the function's return type to Result. 264Change the function's return type to Result.