We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1671b9b commit 57f1036Copy full SHA for 57f1036
src/doc/trpl/associated-types.md
@@ -43,7 +43,7 @@ trait Graph {
43
Now, our clients can be abstract over a given `Graph`:
44
45
```rust,ignore
46
-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 { ... }
47
```
48
49
No need to deal with the `E`dge type here!
0 commit comments