Skip to content

Commit

Permalink
Auto merge of #964 - npmccallum:master, r=alexcrichton
Browse files Browse the repository at this point in the history
Default RHS to Self for Div and Shl

This fixes a consistency issue with the other operator traits.
  • Loading branch information
bors committed Apr 6, 2018
2 parents 5123801 + 585e115 commit cc835c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ mod imp {
}

#[lang = "div"]
pub trait Div<RHS> {
pub trait Div<RHS=Self> {
type Output;
fn div(self, rhs: RHS) -> Self::Output;
}

#[lang = "shl"]
pub trait Shl<RHS> {
pub trait Shl<RHS=Self> {
type Output;
fn shl(self, rhs: RHS) -> Self::Output;
}
Expand Down

0 comments on commit cc835c9

Please sign in to comment.