diff options
| author | Alex Burka <durka42+github@gmail.com> | 2015-05-15 12:14:39 -0400 |
|---|---|---|
| committer | Alex Burka <durka42+github@gmail.com> | 2015-05-15 12:14:39 -0400 |
| commit | 900f27dc7cb9af9aa0763fcc3d5f4556a4fc9736 (patch) | |
| tree | 9922d61f781392e0440f56dfae40d148a8c85596 | |
| parent | 13a4b83c1a73260b9c34a66d3bde62ff09d01863 (diff) | |
| download | rust-900f27dc7cb9af9aa0763fcc3d5f4556a4fc9736.tar.gz rust-900f27dc7cb9af9aa0763fcc3d5f4556a4fc9736.zip | |
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`.
| -rw-r--r-- | src/doc/trpl/traits.md | 2 |
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 |
