Skip to content

Commit

Permalink
Update to be compatible with latest Rust
Browse files Browse the repository at this point in the history
Change fail! to panic!
rust-lang/rust#17489
  • Loading branch information
James Sanderson authored and James Sanderson committed Feb 15, 2015
1 parent 18efbbe commit 517a381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn hex_to_int(hex: char) -> int {
hex as int - 'a' as int + 10
}
else {
fail!("Character {} out of range", hex);
panic!("Character {} out of range", hex);
}
}

Expand Down

0 comments on commit 517a381

Please sign in to comment.