Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo in an example
  • Loading branch information
schuster committed May 30, 2017
commit 37b9b8478e726af6de354534d0181a44e7a755d7
4 changes: 2 additions & 2 deletions text/0000-const-static-type-elision.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ type error, because there are multiple possible types for the literal 42
it to be `i64`.

```rust
const THE_ANSWER = 42; // nothing in RHS indicates this must be i16
const THE_ANSWER = 42; // nothing in RHS indicates this must be i64

fn get_big_number() -> i16 {
fn get_big_number() -> i64 {
THE_ANSWER
}
```
Expand Down