Skip to content

Commit 3797827

Browse files
committed
Fix doctest (fixup #23188)
1 parent 684cd77 commit 3797827

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/trpl/method-syntax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ impl Circle {
7171
fn takes_ownership(self) {
7272
println!("taking ownership of self!");
7373
}
74+
}
7475
```
7576

7677
Finally, as you may remember, the value of the area of a circle is `π*r²`.

0 commit comments

Comments
 (0)