diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-20 12:23:37 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-26 15:56:16 -0700 |
| commit | 8337fa1a545e7958389c6025661990eedd9c1b91 (patch) | |
| tree | c8156400e412fe7e4441a42592f2687915d8f2fa /src/libstd/term.rs | |
| parent | d9a6a6365327ac156ef3102e2b7efae1b2be5934 (diff) | |
| download | rust-8337fa1a545e7958389c6025661990eedd9c1b91.tar.gz rust-8337fa1a545e7958389c6025661990eedd9c1b91.zip | |
Camel case the option type
Diffstat (limited to 'src/libstd/term.rs')
| -rw-r--r-- | src/libstd/term.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/term.rs b/src/libstd/term.rs index be189151287..424e4b61eb0 100644 --- a/src/libstd/term.rs +++ b/src/libstd/term.rs @@ -1,6 +1,6 @@ //! Simple ANSI color library -import core::option; +import core::Option; // FIXME (#2807): Windows support. @@ -36,13 +36,13 @@ fn color_supported() -> bool { let supported_terms = ~[~"xterm-color", ~"xterm", ~"screen-bce", ~"xterm-256color"]; return match os::getenv(~"TERM") { - option::some(env) => { + option::Some(env) => { for vec::each(supported_terms) |term| { if term == env { return true; } } false } - option::none => false + option::None => false }; } |
