From 900f27dc7cb9af9aa0763fcc3d5f4556a4fc9736 Mon Sep 17 00:00:00 2001 From: Alex Burka Date: Fri, 15 May 2015 12:14:39 -0400 Subject: [PATCH] trpl: change from "int" to "i32" in Traits The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`. --- src/doc/trpl/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index 51ee4bf0cdc2..889205ad5d8b 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -208,7 +208,7 @@ let result = f.write("whatever".as_bytes()); This will compile without error. -This means that even if someone does something bad like add methods to `int`, +This means that even if someone does something bad like add methods to `i32`, it won’t affect you, unless you `use` that trait. There’s one more restriction on implementing traits. Either the trait or the