Skip to content

Commit

Permalink
Remove exception about isize/usize and add example rust-lang#742
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidj committed May 14, 2016
1 parent 0eb92b4 commit d4c3605
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/cast/literals/input.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Numeric literals can be type annotated by adding the type as a suffix, with the
exception of `usize` that uses the `usize` suffix and `isize` that uses the
`isize` suffix.
Numeric literals can be type annotated by adding the type as a suffix. As an example,
to specify that the literal `42` should have the type `i32`, write `42i32`.

The type of unsuffixed numeric literals will depend on how they are used. If no
constraint exists, the compiler will use `i32` for integers, and `f64` for
Expand Down

0 comments on commit d4c3605

Please sign in to comment.