Rollup merge of #26257 - Tonkpils:patch-1, r=alexcrichton
This commit is contained in:
commit
e7c10d5d31
@ -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