diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-09 02:16:36 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-09 02:16:36 +1100 |
| commit | 9dc44c7d861de4db93620589507e3ce935677392 (patch) | |
| tree | 2e07baa64b5eafebe373a8a400a89e5e69b9587e | |
| parent | fee8c1d2c7316949cb587a915fcf3b1f499eb8f7 (diff) | |
Fix cheatsheet examples on 32-bit platforms.
0xDEADBEEF doesn't fit in an int = i32 (on 32-bit computers).
| -rw-r--r-- | doc/complement-cheatsheet.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/complement-cheatsheet.md b/doc/complement-cheatsheet.md index d9dc527caee..4c106a357e6 100644 --- a/doc/complement-cheatsheet.md +++ b/doc/complement-cheatsheet.md @@ -38,8 +38,8 @@ Use [`FromStrRadix`](http://static.rust-lang.org/doc/master/std/num/trait.FromSt ~~~ use std::num::from_str_radix; -let x: Option<int> = from_str_radix("deadbeef", 16); -let y: int = x.unwrap(); +let x: Option<i64> = from_str_radix("deadbeef", 16); +let y: i64 = x.unwrap(); ~~~ # File operations @@ -211,4 +211,4 @@ For small examples, have full type annotations, as much as is reasonable, to kee Similar documents for other programming languages: - * [http://pleac.sourceforge.net/](http://pleac.sourceforge.net) + * [http://pleac.sourceforge.net/](http://pleac.sourceforge.net) |
