Skip to content

Commit

Permalink
Further DSTify Index traits
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon committed Nov 17, 2014
1 parent ff88510 commit 9f1217d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ops.rs
Expand Up @@ -638,7 +638,7 @@ shr_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64)
* ```
*/
#[lang="index"]
pub trait Index<Index, Sized? Result> for Sized? {
pub trait Index<Sized? Index, Sized? Result> for Sized? {
/// The method for the indexing (`Foo[Bar]`) operation
fn index<'a>(&'a self, index: &Index) -> &'a Result;
}
Expand Down Expand Up @@ -669,7 +669,7 @@ pub trait Index<Index, Sized? Result> for Sized? {
* ```
*/
#[lang="index_mut"]
pub trait IndexMut<Index, Result> for Sized? {
pub trait IndexMut<Sized? Index, Result> for Sized? {
/// The method for the indexing (`Foo[Bar]`) operation
fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result;
}
Expand Down

0 comments on commit 9f1217d

Please sign in to comment.