diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-09-10 06:03:32 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-09-10 06:03:32 +0200 |
| commit | c5a76c692b68748384214002bdfdff2e93658694 (patch) | |
| tree | 9a278b28530f603f88ab1d636ea4bdfce55c6610 /src/doc/reference.md | |
| parent | 2f77a59d1611f58efa8890e935bec271032cd235 (diff) | |
| download | rust-c5a76c692b68748384214002bdfdff2e93658694.tar.gz rust-c5a76c692b68748384214002bdfdff2e93658694.zip | |
reference: not comfortable seeing a paragraph starting with a lowercase letter
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 900d1306e05..27b8b9c558f 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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 |
