Skip to content

Commit 1a72d6d

Browse files
committed
Fix some of the __names in the comments
1 parent b9b650c commit 1a72d6d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/libsyntax_ext/deriving/cmp/ord.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<Expr> {
7777
// ::std::cmp::Ordering::Equal => {
7878
// ...
7979
// }
80-
// __cmp => __cmp
80+
// cmp => cmp
8181
// },
82-
// __cmp => __cmp
82+
// cmp => cmp
8383
// }
8484
//
8585
cs_fold(// foldr nests the if-elses correctly, leaving the first field
@@ -88,7 +88,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<Expr> {
8888
|cx, span, old, self_f, other_fs| {
8989
// match new {
9090
// ::std::cmp::Ordering::Equal => old,
91-
// __cmp => __cmp
91+
// cmp => cmp
9292
// }
9393

9494
let new = {

src/libsyntax_ext/deriving/cmp/partial_ord.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<
138138
// ::std::option::Option::Some(::std::cmp::Ordering::Equal) => {
139139
// ...
140140
// }
141-
// __cmp => __cmp
141+
// cmp => cmp
142142
// },
143-
// __cmp => __cmp
143+
// cmp => cmp
144144
// }
145145
//
146146
cs_fold(// foldr nests the if-elses correctly, leaving the first field
@@ -149,7 +149,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<
149149
|cx, span, old, self_f, other_fs| {
150150
// match new {
151151
// Some(::std::cmp::Ordering::Equal) => old,
152-
// __cmp => __cmp
152+
// cmp => cmp
153153
// }
154154

155155
let new = {

src/libsyntax_ext/deriving/generic/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,10 +1004,10 @@ impl<'a> MethodDef<'a> {
10041004
///
10051005
/// // equivalent to:
10061006
/// impl PartialEq for A {
1007-
/// fn eq(&self, __arg_1: &A) -> bool {
1007+
/// fn eq(&self, other: &A) -> bool {
10081008
/// match *self {
10091009
/// A {x: ref __self_0_0, y: ref __self_0_1} => {
1010-
/// match *__arg_1 {
1010+
/// match *other {
10111011
/// A {x: ref __self_1_0, y: ref __self_1_1} => {
10121012
/// __self_0_0.eq(__self_1_0) && __self_0_1.eq(__self_1_1)
10131013
/// }
@@ -1020,10 +1020,10 @@ impl<'a> MethodDef<'a> {
10201020
/// // or if A is repr(packed) - note fields are matched by-value
10211021
/// // instead of by-reference.
10221022
/// impl PartialEq for A {
1023-
/// fn eq(&self, __arg_1: &A) -> bool {
1023+
/// fn eq(&self, other: &A) -> bool {
10241024
/// match *self {
10251025
/// A {x: __self_0_0, y: __self_0_1} => {
1026-
/// match __arg_1 {
1026+
/// match other {
10271027
/// A {x: __self_1_0, y: __self_1_1} => {
10281028
/// __self_0_0.eq(&__self_1_0) && __self_0_1.eq(&__self_1_1)
10291029
/// }
@@ -1134,14 +1134,14 @@ impl<'a> MethodDef<'a> {
11341134
/// // is equivalent to
11351135
///
11361136
/// impl PartialEq for A {
1137-
/// fn eq(&self, __arg_1: &A) -> ::bool {
1138-
/// match (&*self, &*__arg_1) {
1137+
/// fn eq(&self, other: &A) -> ::bool {
1138+
/// match (&*self, &*other) {
11391139
/// (&A1, &A1) => true,
11401140
/// (&A2(ref self_0),
11411141
/// &A2(ref __arg_1_0)) => (*self_0).eq(&(*__arg_1_0)),
11421142
/// _ => {
11431143
/// let __self_vi = match *self { A1(..) => 0, A2(..) => 1 };
1144-
/// let __arg_1_vi = match *__arg_1 { A1(..) => 0, A2(..) => 1 };
1144+
/// let __arg_1_vi = match *other { A1(..) => 0, A2(..) => 1 };
11451145
/// false
11461146
/// }
11471147
/// }

0 commit comments

Comments
 (0)