From 6d9bdf975aba3cd2f571f4e3695136f2ee85f37f Mon Sep 17 00:00:00 2001 From: Palmer Cox
Date: Sat, 15 Feb 2014 16:15:03 -0500 Subject: Rename all variables that have uppercase characters in their names to use only lowercase characters --- src/libserialize/base64.rs | 6 +++--- src/libserialize/json.rs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libserialize') diff --git a/src/libserialize/base64.rs b/src/libserialize/base64.rs index f43c62f6ffc..ea9a922f224 100644 --- a/src/libserialize/base64.rs +++ b/src/libserialize/base64.rs @@ -199,9 +199,9 @@ impl<'a> FromBase64 for &'a str { * println!("base64 output: {}", hello_str); * let res = hello_str.from_base64(); * if res.is_ok() { - * let optBytes = str::from_utf8_owned(res.unwrap()); - * if optBytes.is_some() { - * println!("decoded from base64: {}", optBytes.unwrap()); + * let opt_bytes = str::from_utf8_owned(res.unwrap()); + * if opt_bytes.is_some() { + * println!("decoded from base64: {}", opt_bytes.unwrap()); * } * } * } diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index 517f4e9ab69..ad7585d9808 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -1672,15 +1672,15 @@ mod tests { ]" ); - let longTestList = List(~[ + let long_test_list = List(~[ Boolean(false), Null, List(~[String(~"foo\nbar"), Number(3.5)])]); - assert_eq!(longTestList.to_str(), + assert_eq!(long_test_list.to_str(), ~"[false,null,[\"foo\\nbar\",3.5]]"); assert_eq!( - longTestList.to_pretty_str(), + long_test_list.to_pretty_str(), ~"\ [\n \ false,\n \ @@ -1710,7 +1710,7 @@ mod tests { }" ); - let complexObj = mk_object([ + let complex_obj = mk_object([ (~"b", List(~[ mk_object([(~"c", String(~"\x0c\r"))]), mk_object([(~"d", String(~""))]) @@ -1718,7 +1718,7 @@ mod tests { ]); assert_eq!( - complexObj.to_str(), + complex_obj.to_str(), ~"{\ \"b\":[\ {\"c\":\"\\f\\r\"},\ @@ -1727,7 +1727,7 @@ mod tests { }" ); assert_eq!( - complexObj.to_pretty_str(), + complex_obj.to_pretty_str(), ~"\ {\n \ \"b\": [\n \ -- cgit 1.4.1-3-g733a5