From 9cf271fe96b474d514b1052935db70c4056cf076 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 21:41:37 -0700 Subject: De-mode vec::each() and many of the str iteration routines Note that the method foo.each() is not de-moded, nor the other vec routines. --- src/libstd/term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/term.rs') diff --git a/src/libstd/term.rs b/src/libstd/term.rs index 34244e95c0c..6a264161bc7 100644 --- a/src/libstd/term.rs +++ b/src/libstd/term.rs @@ -40,7 +40,7 @@ fn color_supported() -> bool { return match os::getenv(~"TERM") { option::Some(env) => { for vec::each(supported_terms) |term| { - if term == env { return true; } + if *term == env { return true; } } false } -- cgit 1.4.1-3-g733a5