about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-16 02:11:11 +0000
committerbors <bors@rust-lang.org>2015-05-16 02:11:11 +0000
commit4ce08a5d70a4dfc4da7ed0bc0098cfd2176b8411 (patch)
treedc1985ec7e6020632c12dd2438477a13d7e63011
parent7a52835c1a6da00dd054c2e934a70a0c231dffd1 (diff)
parent900f27dc7cb9af9aa0763fcc3d5f4556a4fc9736 (diff)
downloadrust-4ce08a5d70a4dfc4da7ed0bc0098cfd2176b8411.tar.gz
rust-4ce08a5d70a4dfc4da7ed0bc0098cfd2176b8411.zip
Auto merge of #25440 - durka:patch-3, r=alexcrichton
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`.
-rw-r--r--src/doc/trpl/traits.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md
index 51ee4bf0cdc..889205ad5d8 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