diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-02-01 16:49:36 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-02-01 16:49:57 -0800 |
| commit | 49cb3fc7dfd2a8ee7f35aaa884da8f710cd4a94a (patch) | |
| tree | c42edd27f47c8a78cc212391c093992d3bde7f4b /src/libcore/char.rs | |
| parent | 4eb92d41775e633fbc177b1dd163a799260835a8 (diff) | |
| download | rust-49cb3fc7dfd2a8ee7f35aaa884da8f710cd4a94a.tar.gz rust-49cb3fc7dfd2a8ee7f35aaa884da8f710cd4a94a.zip | |
Remove remaining references to option::t outside option itself
Diffstat (limited to 'src/libcore/char.rs')
| -rw-r--r-- | src/libcore/char.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs index 3d7fa5ec3e8..21028655626 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -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)) } |
