Remove remaining references to option::t outside option itself

This commit is contained in:
Tim Chevalier 2012-02-01 16:49:36 -08:00
parent 4eb92d4177
commit 49cb3fc7df
4 changed files with 12 additions and 12 deletions

View file

@ -103,7 +103,7 @@ pure fn to_digit(c: char) -> u8 unsafe {
brief = "Convert a char to the corresponding digit. Returns none when \
character is not a valid hexadecimal digit."
)]
pure fn maybe_digit(c: char) -> option::t<u8> {
pure fn maybe_digit(c: char) -> option<u8> {
alt c {
'0' to '9' { option::some(c as u8 - ('0' as u8)) }
'a' to 'z' { option::some(c as u8 + 10u8 - ('a' as u8)) }