File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1489,14 +1489,14 @@ impl Num for f64 {
14891489let x: f64 = Num::from_i32(42);
14901490```
14911491
1492- Traits may inherit from other traits. For example, in
1492+ Traits may inherit from other traits. Consider the following example:
14931493
14941494```
14951495trait Shape { fn area(&self) -> f64; }
14961496trait Circle : Shape { fn radius(&self) -> f64; }
14971497```
14981498
1499- the syntax ` Circle : Shape ` means that types that implement ` Circle ` must also
1499+ The syntax ` Circle : Shape ` means that types that implement ` Circle ` must also
15001500have an implementation for ` Shape ` . Multiple supertraits are separated by ` + ` ,
15011501` trait Circle : Shape + PartialEq { } ` . In an implementation of ` Circle ` for a
15021502given type ` T ` , methods can refer to ` Shape ` methods, since the typechecker
You can’t perform that action at this time.
0 commit comments