Skip to content

Commit 428b53b

Browse files
authored
Merge pull request #3044 from 0xflotus/patch-2
fix: added fn keyword where missing in PartialOrd
2 parents 32469e2 + b9a72bd commit 428b53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0100-partial-cmp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub trait PartialOrd {
4343
}
4444
}
4545

46-
le(&self, other: &Self) -> bool {
46+
fn le(&self, other: &Self) -> bool {
4747
match self.partial_cmp(other) {
4848
Some(Less) | Some(Equal) => true,
4949
_ => false,
@@ -57,7 +57,7 @@ pub trait PartialOrd {
5757
}
5858
}
5959

60-
ge(&self, other: &Self) -> bool {
60+
fn ge(&self, other: &Self) -> bool {
6161
match self.partial_cmp(other) {
6262
Some(Greater) | Some(Equal) => true,
6363
_ => false,

0 commit comments

Comments
 (0)