usize -> u32 to match previous example
This commit is contained in:
parent
1671b9baec
commit
57f1036ce9
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user