about summary refs log tree commit diff
path: root/src/libstd/map.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-23 04:39:27 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-23 13:30:13 -0500
commitba3eebd41db384c2a46535e8db8c7b2337d55f0b (patch)
tree0a746d1b95cd85358fa07aca67683524c8dd1f79 /src/libstd/map.rs
parent2e7ddee8239ceba5989c5dfd83e9a935775b00d1 (diff)
downloadrust-ba3eebd41db384c2a46535e8db8c7b2337d55f0b.tar.gz
rust-ba3eebd41db384c2a46535e8db8c7b2337d55f0b.zip
Make it illegal to use modes in a fn signature with providing
an explicit variable name. (Step one to changing the defaults)

First step to #3535
Diffstat (limited to 'src/libstd/map.rs')
-rw-r--r--src/libstd/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs
index f28d7694b20..adaab0050bb 100644
--- a/src/libstd/map.rs
+++ b/src/libstd/map.rs
@@ -33,7 +33,7 @@ trait Map<K:Eq IterBytes Hash Copy, V: Copy> {
      *
      * Returns true if the key did not already exist in the map
      */
-    fn insert(+K, +V) -> bool;
+    fn insert(+v: K, +v: V) -> bool;
 
     /// Returns true if the map contains a value for the specified key
     fn contains_key(+key: K) -> bool;