From aecb6abab4803d32ef035e9519458b76722220af Mon Sep 17 00:00:00 2001 From: Adam Martinez Date: Tue, 28 Mar 2017 19:22:31 -0400 Subject: [PATCH] Fix normal function call signature The normal function should not take a reference to an i32, since the inverse function does not take a reference to T. Giving these functions identical call signatures improves clarity, and it makes more sense to pass integers normally than by reference. --- first-edition/src/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-edition/src/traits.md b/first-edition/src/traits.md index a20aded71..006325b98 100644 --- a/first-edition/src/traits.md +++ b/first-edition/src/traits.md @@ -414,7 +414,7 @@ impl ConvertTo for i32 { } // Can be called with T == i32. -fn normal>(x: &T) -> i64 { +fn normal>(x: T) -> i64 { x.convert() }