Skip to content

Commit

Permalink
Fix cheatsheet examples on 32-bit platforms.
Browse files Browse the repository at this point in the history
0xDEADBEEF doesn't fit in an int = i32 (on 32-bit computers).
  • Loading branch information
huonw committed Jan 8, 2014
1 parent fee8c1d commit 9dc44c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/complement-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

5 comments on commit 9dc44c7

@bors
Copy link
Contributor

@bors bors commented on 9dc44c7 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at huonw@9dc44c7

@bors
Copy link
Contributor

@bors bors commented on 9dc44c7 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging huonw/rust/moredocs = 9dc44c7 into auto

@bors
Copy link
Contributor

@bors bors commented on 9dc44c7 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huonw/rust/moredocs = 9dc44c7 merged ok, testing candidate = 464d1d0

@bors
Copy link
Contributor

@bors bors commented on 9dc44c7 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 9dc44c7 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 464d1d0

Please sign in to comment.