aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-05-20 10:10:52 +0100
committerGitHub <[email protected]>2020-05-20 10:10:52 +0100
commit4d3fd62f897da50db1b203b86f45b9d2cd272b4d (patch)
tree595b6ff2205303b2eeb55a275ac0d364742732e6 /docs/user
parentb422cef7dce4d98391de2a108001a49ae1c9625a (diff)
parent33e111483fbc80c017037e0b158ee652ed41b3e8 (diff)
Merge #4530
4530: Use snippets in change_return_type_to_result r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/assists.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md
index f329fcc10..006ec4d54 100644
--- a/docs/user/assists.md
+++ b/docs/user/assists.md
@@ -198,7 +198,7 @@ struct Ctx<T: Clone> {
198} 198}
199 199
200impl<T: Clone> Ctx<T> { 200impl<T: Clone> Ctx<T> {
201 fn new(data: T) -> Self { Self { data } } 201 fn $0new(data: T) -> Self { Self { data } }
202} 202}
203 203
204``` 204```
@@ -268,7 +268,7 @@ Change the function's return type to Result.
268fn foo() -> i32┃ { 42i32 } 268fn foo() -> i32┃ { 42i32 }
269 269
270// AFTER 270// AFTER
271fn foo() -> Result<i32, > { Ok(42i32) } 271fn foo() -> Result<i32, ${0:_}> { Ok(42i32) }
272``` 272```
273 273
274## `change_visibility` 274## `change_visibility`