Update traits.md

This commit is contained in:
Xmasreturns 2015-12-08 14:56:42 -08:00
parent f5a4383b21
commit 88c407c74f

View File

@ -23,7 +23,7 @@ impl Circle {
[methodsyntax]: method-syntax.html
Traits are similar, except that we first define a trait with a method
signature, then implement the trait for a struct. Like this:
signature, then implement the trait for a type. In this example, we implement the trait `HasArea` for `Circle`:
```rust
struct Circle {