From f393100b7ce86e0c1201f003c2d69fb9ea742db1 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 2 Sep 2012 18:13:48 -0700 Subject: Camel case core::ops --- src/libstd/bitv.rs | 2 +- src/libstd/ebml.rs | 2 +- src/libstd/map.rs | 2 +- src/libstd/smallintmap.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd') 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 { +impl Bitv: ops::Index { 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 { +impl Doc: ops::Index { 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 t: ops::index { + impl t: ops::Index { 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 smallintmap: map::map { } } -impl smallintmap: ops::index { +impl smallintmap: ops::Index { pure fn index(&&key: uint) -> V { unchecked { get(self, key) -- cgit 1.4.1-3-g733a5