From 57f1036ce9ebf5eb4397d400494dbef8e96f9b0d Mon Sep 17 00:00:00 2001 From: Leo Correa Date: Fri, 12 Jun 2015 15:59:39 -0400 Subject: [PATCH] usize -> u32 to match previous example --- src/doc/trpl/associated-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!