about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-05 15:15:21 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-05 15:15:21 -0800
commit91b6dc5c8ed8d839006de4ea6a7e8cd6727db93d (patch)
tree3442d5275d820c0440e7f4e230a7555fda87fa43 /src/libstd
parent6be25c8a0cfe28f032ce2b65f8cb07dd1a1ae148 (diff)
parent29ba19633651e4c51cddf3c2c089c1c36ed531c6 (diff)
downloadrust-91b6dc5c8ed8d839006de4ea6a7e8cd6727db93d.tar.gz
rust-91b6dc5c8ed8d839006de4ea6a7e8cd6727db93d.zip
Merge remote-tracking branch 'erickt/master'
Conflicts:
	src/libcore/vec.rs
	src/libstd/getopts.rs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/getopts.rs2
-rw-r--r--src/libstd/map.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs
index bc96cb65efa..48d83f0e5c2 100644
--- a/src/libstd/getopts.rs
+++ b/src/libstd/getopts.rs
@@ -149,7 +149,7 @@ fn name_str(nm: name) -> str {
 }
 
 fn find_opt(opts: [opt], nm: name) -> option<uint> {
-    vec::position_pred(opts, { |opt| opt.name == nm })
+    vec::position(opts, { |opt| opt.name == nm })
 }
 
 /*
diff --git a/src/libstd/map.rs b/src/libstd/map.rs
index 3f53270ed10..8da3d78552d 100644
--- a/src/libstd/map.rs
+++ b/src/libstd/map.rs
@@ -95,6 +95,7 @@ iface map<K: copy, V: copy> {
     Iterate over all the keys in the map
     */
     fn keys(fn(K));
+
     /*
     Iterate over all the values in the map
     */
@@ -631,4 +632,4 @@ mod tests {
         map.insert(key, "val");
         assert (option::get(map.find(key)) == "val");
     }
-}
\ No newline at end of file
+}