usize -> u32 to match previous example

This commit is contained in:
Leo Correa 2015-06-12 15:59:39 -04:00
parent 1671b9baec
commit 57f1036ce9

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!