Rollup merge of #26257 - Tonkpils:patch-1, r=alexcrichton

This commit is contained in:
Manish Goregaokar 2015-06-13 18:03:55 +05:30
commit e7c10d5d31

View File

@ -43,7 +43,7 @@ trait Graph {
Now, our clients can be abstract over a given `Graph`:
```rust,ignore
fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> usize { ... }
fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> u32 { ... }
```
No need to deal with the `E`dge type here!