Skip to content

Commit 88c407c

Browse files
committed
Update traits.md
1 parent f5a4383 commit 88c407c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Circle {
2323
[methodsyntax]: method-syntax.html
2424

2525
Traits are similar, except that we first define a trait with a method
26-
signature, then implement the trait for a struct. Like this:
26+
signature, then implement the trait for a type. In this example, we implement the trait `HasArea` for `Circle`:
2727

2828
```rust
2929
struct Circle {

0 commit comments

Comments
 (0)