]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/trpl/traits.md
remove confusing 1i32
[rust.git] / src / doc / trpl / traits.md
index 07da32c34bed960698a14711e7ecb2bc83972170..687e2bbf00e783f7d0a1c8c12421eddd3867e00d 100644 (file)
@@ -332,7 +332,7 @@ fn normal<T: ConvertTo<i64>>(x: &T) -> i64 {
 fn inverse<T>() -> T
         // this is using ConvertTo as if it were "ConvertFrom<i32>"
         where i32: ConvertTo<T> {
-    1i32.convert()
+    42.convert()
 }
 ```