Skip to content

Commit 6aab51e

Browse files
committed
---
yaml --- r: 184029 b: refs/heads/auto c: ef42c2b h: refs/heads/master i: 184027: 1bff463 v: v3
1 parent a1d4d2f commit 6aab51e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: d801a4da7cc8672c3b7655ccad218ab892b8dd9b
13+
refs/heads/auto: ef42c2befd9451cd913de60539487a483ae9deac
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/doc/reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ the final namespace qualifier is omitted.
576576
Two examples of paths with type arguments:
577577

578578
```
579-
# struct HashMap<K, V>;
579+
# struct HashMap<K, V>(K,V);
580580
# fn f() {
581581
# fn id<T>(t: T) -> T { t }
582582
type T = HashMap<i32,String>; // Type arguments used in a type expression
@@ -1603,7 +1603,7 @@ pointer values (pointing to a type for which an implementation of the given
16031603
trait is in scope) to pointers to the trait name, used as a type.
16041604

16051605
```
1606-
# trait Shape { }
1606+
# trait Shape { fn dummy(&self) { } }
16071607
# impl Shape for i32 { }
16081608
# let mycircle = 0i32;
16091609
let myshape: Box<Shape> = Box::new(mycircle) as Box<Shape>;
@@ -1634,8 +1634,8 @@ let x: f64 = Num::from_i32(42);
16341634
Traits may inherit from other traits. For example, in
16351635

16361636
```
1637-
trait Shape { fn area() -> f64; }
1638-
trait Circle : Shape { fn radius() -> f64; }
1637+
trait Shape { fn area(&self) -> f64; }
1638+
trait Circle : Shape { fn radius(&self) -> f64; }
16391639
```
16401640

16411641
the syntax `Circle : Shape` means that types that implement `Circle` must also
@@ -1729,7 +1729,7 @@ type parameters taken by the trait it implements. Implementation parameters
17291729
are written after the `impl` keyword.
17301730

17311731
```
1732-
# trait Seq<T> { }
1732+
# trait Seq<T> { fn dummy(&self, _: T) { } }
17331733
impl<T> Seq<T> for Vec<T> {
17341734
/* ... */
17351735
}

0 commit comments

Comments
 (0)