]> git.lizzy.rs Git - rust.git/commitdiff
trpl: change from "int" to "i32" in Traits
authorAlex Burka <durka42+github@gmail.com>
Fri, 15 May 2015 16:14:39 +0000 (12:14 -0400)
committerAlex Burka <durka42+github@gmail.com>
Fri, 15 May 2015 16:14:39 +0000 (12:14 -0400)
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

index 51ee4bf0cdc2833f1285d89bb4f118f3d7c0b751..889205ad5d8b12304ad1757a84ef9df9e947035d 100644 (file)
@@ -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