1
Fork 0

std: Rename the hashmap constructors to conform to new standards

Instead of using the new_ prefix just name them after their type
This commit is contained in:
Brian Anderson 2012-03-14 12:07:23 -07:00
parent 383a801993
commit 3864d6d845
43 changed files with 140 additions and 143 deletions

View file

@ -407,7 +407,7 @@ impl parser for parser {
self.bump();
self.parse_whitespace();
let values = map::new_str_hash();
let values = map::str_hash();
if self.ch == '}' {
self.bump();
@ -501,7 +501,7 @@ fn eq(value0: json, value1: json) -> bool {
#[cfg(test)]
mod tests {
fn mk_dict(items: [(str, json)]) -> json {
let d = map::new_str_hash();
let d = map::str_hash();
vec::iter(items) { |item|
let (key, value) = item;