diff options
| author | Palmer Cox <p@lmercox.com> | 2014-02-15 16:15:03 -0500 |
|---|---|---|
| committer | Palmer Cox <p@lmercox.com> | 2014-03-04 21:23:36 -0500 |
| commit | 6d9bdf975aba3cd2f571f4e3695136f2ee85f37f (patch) | |
| tree | e081c4b83e625ca10d85c7aa3e74d6b8b3066fa4 /src/libserialize | |
| parent | fe50c75d02c9b41bcda28596077b1122a89bee5d (diff) | |
| download | rust-6d9bdf975aba3cd2f571f4e3695136f2ee85f37f.tar.gz rust-6d9bdf975aba3cd2f571f4e3695136f2ee85f37f.zip | |
Rename all variables that have uppercase characters in their names to use only lowercase characters
Diffstat (limited to 'src/libserialize')
| -rw-r--r-- | src/libserialize/base64.rs | 6 | ||||
| -rw-r--r-- | src/libserialize/json.rs | 12 |
2 files changed, 9 insertions, 9 deletions
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 \ |
