]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14465 : Ryman/rust/patch-1, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 28 May 2014 23:01:36 +0000 (16:01 -0700)
committerbors <bors@rust-lang.org>
Wed, 28 May 2014 23:01:36 +0000 (16:01 -0700)
src/doc/rust.md

index 4ea17e735dfcd4a4954108b8c6e4a76301062c2c..d62d03518125e7de3365c3871e533a661da88d69 100644 (file)
@@ -1435,7 +1435,7 @@ trait Circle : Shape { fn radius() -> f64; }
 ~~~~
 
 the syntax `Circle : Shape` means that types that implement `Circle` must also have an implementation for `Shape`.
-Multiple supertraits are separated by spaces, `trait Circle : Shape Eq { }`.
+Multiple supertraits are separated by `+`, `trait Circle : Shape + Eq { }`.
 In an implementation of `Circle` for a given type `T`, methods can refer to `Shape` methods,
 since the typechecker checks that any type with an implementation of `Circle` also has an implementation of `Shape`.