Skip to content

Commit 9dc44c7

Browse files
committed
Fix cheatsheet examples on 32-bit platforms.
0xDEADBEEF doesn't fit in an int = i32 (on 32-bit computers).
1 parent fee8c1d commit 9dc44c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/complement-cheatsheet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Use [`FromStrRadix`](http://static.rust-lang.org/doc/master/std/num/trait.FromSt
3838
~~~
3939
use std::num::from_str_radix;
4040
41-
let x: Option<int> = from_str_radix("deadbeef", 16);
42-
let y: int = x.unwrap();
41+
let x: Option<i64> = from_str_radix("deadbeef", 16);
42+
let y: i64 = x.unwrap();
4343
~~~
4444

4545
# File operations
@@ -211,4 +211,4 @@ For small examples, have full type annotations, as much as is reasonable, to kee
211211

212212
Similar documents for other programming languages:
213213

214-
* [http://pleac.sourceforge.net/](http://pleac.sourceforge.net)
214+
* [http://pleac.sourceforge.net/](http://pleac.sourceforge.net)

0 commit comments

Comments
 (0)