diff options
Diffstat (limited to 'docs/user')
-rw-r--r-- | docs/user/assists.md | 4 |
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 | ||
200 | impl<T: Clone> Ctx<T> { | 200 | impl<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. | |||
268 | fn foo() -> i32┃ { 42i32 } | 268 | fn foo() -> i32┃ { 42i32 } |
269 | 269 | ||
270 | // AFTER | 270 | // AFTER |
271 | fn foo() -> Result<i32, > { Ok(42i32) } | 271 | fn foo() -> Result<i32, ${0:_}> { Ok(42i32) } |
272 | ``` | 272 | ``` |
273 | 273 | ||
274 | ## `change_visibility` | 274 | ## `change_visibility` |