From 0c6e470a257fc546555aa10ededded4a77460a71 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 26 Aug 2012 16:54:31 -0700 Subject: Convert core::result to camel case --- src/libsyntax/parse/eval.rs | 4 ++-- src/libsyntax/parse/parser.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/eval.rs b/src/libsyntax/parse/eval.rs index 2a4516f80aa..39f8bb59c1f 100644 --- a/src/libsyntax/parse/eval.rs +++ b/src/libsyntax/parse/eval.rs @@ -54,8 +54,8 @@ fn parse_companion_mod(cx: ctx, prefix: &Path, suffix: &Option) // Crude, but there's no lib function for this and I'm not // up to writing it just now match io::file_reader(path) { - result::ok(_) => true, - result::err(_) => false + result::Ok(_) => true, + result::Err(_) => false } } diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a98be8ec1d0..f73d4163e9c 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1,6 +1,6 @@ import print::pprust::expr_to_str; -import result::result; +import result::Result; import either::{Either, Left, Right}; import std::map::{hashmap, str_hash}; import token::{can_begin_expr, is_ident, is_ident_or_path, is_plain_ident, -- cgit 1.4.1-3-g733a5