Skip to content

Commit cc835c9

Browse files
committed
Auto merge of #964 - npmccallum:master, r=alexcrichton
Default RHS to Self for Div and Shl This fixes a consistency issue with the other operator traits.
2 parents 5123801 + 585e115 commit cc835c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dox.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ mod imp {
6868
}
6969

7070
#[lang = "div"]
71-
pub trait Div<RHS> {
71+
pub trait Div<RHS=Self> {
7272
type Output;
7373
fn div(self, rhs: RHS) -> Self::Output;
7474
}
7575

7676
#[lang = "shl"]
77-
pub trait Shl<RHS> {
77+
pub trait Shl<RHS=Self> {
7878
type Output;
7979
fn shl(self, rhs: RHS) -> Self::Output;
8080
}

0 commit comments

Comments
 (0)