Skip to content

Commit cb7a539

Browse files
committed
Convert std::map to camel case
1 parent 29003c7 commit cb7a539

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+384
-385
lines changed

doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Two examples of paths with type arguments:
450450
# use std::map;
451451
# fn f() {
452452
# fn id<T:Copy>(t: T) -> T { t }
453-
type t = map::hashmap<int,~str>; // Type arguments used in a type expression
453+
type t = map::HashMap<int,~str>; // Type arguments used in a type expression
454454
let x = id::<int>(10); // Type arguments used in a call expression
455455
# }
456456
~~~~

src/cargo/cargo.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use syntax::diagnostic;
1010
use result::{Ok, Err};
1111
use io::WriterUtil;
1212
use std::{map, json, tempfile, term, sort, getopts};
13-
use map::hashmap;
13+
use map::HashMap;
1414
use to_str::to_str;
1515
use getopts::{optflag, optopt, opt_present};
1616

@@ -71,9 +71,9 @@ type cargo = {
7171
libdir: Path,
7272
workdir: Path,
7373
sourcedir: Path,
74-
sources: map::hashmap<~str, source>,
74+
sources: map::HashMap<~str, source>,
7575
mut current_install: ~str,
76-
dep_cache: map::hashmap<~str, bool>,
76+
dep_cache: map::HashMap<~str, bool>,
7777
opts: options
7878
};
7979

@@ -454,7 +454,7 @@ fn parse_source(name: ~str, j: json::Json) -> source {
454454
};
455455
}
456456

457-
fn try_parse_sources(filename: &Path, sources: map::hashmap<~str, source>) {
457+
fn try_parse_sources(filename: &Path, sources: map::HashMap<~str, source>) {
458458
if !os::path_exists(filename) { return; }
459459
let c = io::read_whole_file_str(filename);
460460
match json::from_str(result::get(c)) {
@@ -469,7 +469,7 @@ fn try_parse_sources(filename: &Path, sources: map::hashmap<~str, source>) {
469469
}
470470
}
471471

472-
fn load_one_source_package(src: source, p: map::hashmap<~str, json::Json>) {
472+
fn load_one_source_package(src: source, p: map::HashMap<~str, json::Json>) {
473473
let name = match p.find(~"name") {
474474
Some(json::String(n)) => {
475475
if !valid_pkg_name(*n) {

src/libstd/json.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use core::cmp::{Eq, Ord};
77
use result::{Result, Ok, Err};
88
use io::WriterUtil;
9-
use map::hashmap;
10-
use map::map;
9+
use map::HashMap;
10+
use map::Map;
1111
use sort::Sort;
1212

1313
export Json;
@@ -34,7 +34,7 @@ enum Json {
3434
String(@~str),
3535
Boolean(bool),
3636
List(@~[Json]),
37-
Dict(map::hashmap<~str, Json>),
37+
Dict(map::HashMap<~str, Json>),
3838
Null,
3939
}
4040

@@ -797,7 +797,7 @@ impl <A: ToJson> ~[A]: ToJson {
797797
fn to_json() -> Json { List(@self.map(|elt| elt.to_json())) }
798798
}
799799

800-
impl <A: ToJson Copy> hashmap<~str, A>: ToJson {
800+
impl <A: ToJson Copy> HashMap<~str, A>: ToJson {
801801
fn to_json() -> Json {
802802
let d = map::str_hash();
803803
for self.each() |key, value| {

0 commit comments

Comments
 (0)