diff --git a/src/doc/trpl/associated-types.md b/src/doc/trpl/associated-types.md index ec96880f12a..fe4f27b9d95 100644 --- a/src/doc/trpl/associated-types.md +++ b/src/doc/trpl/associated-types.md @@ -43,7 +43,7 @@ trait Graph { Now, our clients can be abstract over a given `Graph`: ```rust,ignore -fn distance(graph: &G, start: &G::N, end: &G::N) -> usize { ... } +fn distance(graph: &G, start: &G::N, end: &G::N) -> u32 { ... } ``` No need to deal with the `E`dge type here!