diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-20 00:54:08 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-20 00:54:08 +0100 |
commit | b26dbf80090ccdd753b35d6254246229e9ff8728 (patch) | |
tree | b54b03a1220f6977d77ba5e27a82c10c5e386eb0 /docs/user | |
parent | a36202390caff0ed97ff778cf4556fc00ddee70d (diff) | |
parent | a04cababaa144d7a6db7b1dd114494b33d281ab9 (diff) |
Merge #4524
4524: Use snippets in add_missing_members r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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 10ab67b2e..b687330f3 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -146,7 +146,7 @@ trait Trait { | |||
146 | impl Trait for () { | 146 | impl Trait for () { |
147 | Type X = (); | 147 | Type X = (); |
148 | fn foo(&self) {} | 148 | fn foo(&self) {} |
149 | fn bar(&self) {} | 149 | $0fn bar(&self) {} |
150 | 150 | ||
151 | } | 151 | } |
152 | ``` | 152 | ``` |
@@ -175,7 +175,7 @@ trait Trait<T> { | |||
175 | } | 175 | } |
176 | 176 | ||
177 | impl Trait<u32> for () { | 177 | impl Trait<u32> for () { |
178 | fn foo(&self) -> u32 { | 178 | $0fn foo(&self) -> u32 { |
179 | todo!() | 179 | todo!() |
180 | } | 180 | } |
181 | 181 | ||