Skip to content

Commit

Permalink
usize -> u32 to match previous example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonkpils committed Jun 12, 2015
1 parent 1671b9b commit 57f1036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/associated-types.md
Expand Up @@ -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!
Expand Down

0 comments on commit 57f1036

Please sign in to comment.