diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-02 18:13:48 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-02 18:13:56 -0700 |
| commit | f393100b7ce86e0c1201f003c2d69fb9ea742db1 (patch) | |
| tree | 577bd91894ec1e1607ae805c03a36b0819617490 /src/libstd | |
| parent | cb0eb66672c20404cc87850db98fe00ff94da403 (diff) | |
| download | rust-f393100b7ce86e0c1201f003c2d69fb9ea742db1.tar.gz rust-f393100b7ce86e0c1201f003c2d69fb9ea742db1.zip | |
Camel case core::ops
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/bitv.rs | 2 | ||||
| -rw-r--r-- | src/libstd/ebml.rs | 2 | ||||
| -rw-r--r-- | src/libstd/map.rs | 2 | ||||
| -rw-r--r-- | src/libstd/smallintmap.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs index 5d21461eb49..da622625959 100644 --- a/src/libstd/bitv.rs +++ b/src/libstd/bitv.rs @@ -469,7 +469,7 @@ pure fn land(w0: uint, w1: uint) -> uint { return w0 & w1; } pure fn right(_w0: uint, w1: uint) -> uint { return w1; } -impl Bitv: ops::index<uint,bool> { +impl Bitv: ops::Index<uint,bool> { pure fn index(&&i: uint) -> bool { self.get(i) } diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs index 8f9987be348..71de166795f 100644 --- a/src/libstd/ebml.rs +++ b/src/libstd/ebml.rs @@ -41,7 +41,7 @@ type Doc = {data: @~[u8], start: uint, end: uint}; type TaggedDoc = {tag: uint, doc: Doc}; -impl Doc: ops::index<uint,Doc> { +impl Doc: ops::Index<uint,Doc> { pure fn index(&&tag: uint) -> Doc { unchecked { get_doc(self, tag) diff --git a/src/libstd/map.rs b/src/libstd/map.rs index 9e2770a1f02..20c48d6dda7 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -367,7 +367,7 @@ mod chained { } } - impl<K: copy, V: copy> t<K, V>: ops::index<K, V> { + impl<K: copy, V: copy> t<K, V>: ops::Index<K, V> { pure fn index(&&k: K) -> V { unchecked { self.get(k) diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index bc830b4fd9c..4535344b968 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -134,7 +134,7 @@ impl<V: copy> smallintmap<V>: map::map<uint, V> { } } -impl<V: copy> smallintmap<V>: ops::index<uint, V> { +impl<V: copy> smallintmap<V>: ops::Index<uint, V> { pure fn index(&&key: uint) -> V { unchecked { get(self, key) |
