From 8f717ffe60af1911943c7e9483d26bd4b9b73637 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 14 Oct 2014 09:11:37 +0800 Subject: [PATCH] Change _rhs to _index. Because var is provided as an index not a right hand side. --- src/libcore/ops.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index f7cfa4c1baf..30281e36321 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -626,7 +626,7 @@ shr_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64) * struct Foo; * * impl Index for Foo { - * fn index<'a>(&'a self, _rhs: &Foo) -> &'a Foo { + * fn index<'a>(&'a self, _index: &Foo) -> &'a Foo { * println!("Indexing!"); * self * } @@ -657,7 +657,7 @@ pub trait Index { * struct Foo; * * impl IndexMut for Foo { - * fn index_mut<'a>(&'a mut self, _rhs: &Foo) -> &'a mut Foo { + * fn index_mut<'a>(&'a mut self, _index: &Foo) -> &'a mut Foo { * println!("Indexing!"); * self * } @@ -901,4 +901,3 @@ def_fn_mut!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12) def_fn_mut!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13) def_fn_mut!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14) def_fn_mut!(A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15) -