Skip to content

Commit

Permalink
Fix mistake in trait.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochuanyu committed Sep 3, 2015
1 parent 69c3b39 commit 865d6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ fn normal<T: ConvertTo<i64>>(x: &T) -> i64 {

// can be called with T == i64
fn inverse<T>() -> T
// this is using ConvertTo as if it were "ConvertFrom<i32>"
// this is using ConvertTo as if it were "ConvertTo<i64>"
where i32: ConvertTo<T> {
42.convert()
}
Expand Down

0 comments on commit 865d6c3

Please sign in to comment.