Skip to content

Commit

Permalink
reference: not comfortable seeing a paragraph starting with a lowerca…
Browse files Browse the repository at this point in the history
…se letter
  • Loading branch information
tshepang committed Sep 10, 2015
1 parent 2f77a59 commit c5a76c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/reference.md
Expand Up @@ -1489,14 +1489,14 @@ impl Num for f64 {
let x: f64 = Num::from_i32(42);
```

Traits may inherit from other traits. For example, in
Traits may inherit from other traits. Consider the following example:

```
trait Shape { fn area(&self) -> f64; }
trait Circle : Shape { fn radius(&self) -> f64; }
```

the syntax `Circle : Shape` means that types that implement `Circle` must also
The syntax `Circle : Shape` means that types that implement `Circle` must also
have an implementation for `Shape`. Multiple supertraits are separated by `+`,
`trait Circle : Shape + PartialEq { }`. In an implementation of `Circle` for a
given type `T`, methods can refer to `Shape` methods, since the typechecker
Expand Down

0 comments on commit c5a76c6

Please sign in to comment.