@@ -1197,7 +1197,7 @@ fn eq(xs: &List, ys: &List) -> bool {
1197
1197
match (xs, ys) {
1198
1198
// If we have reached the end of both lists, they are equal.
1199
1199
(&Nil, &Nil) => true,
1200
- // If the current element in both lists is equal, keep going.
1200
+ // If the current elements of both lists are equal, keep going.
1201
1201
(&Cons(x, ~ref next_xs), &Cons(y, ~ref next_ys))
1202
1202
if x == y => eq(next_xs, next_ys),
1203
1203
// If the current elements are not equal, the lists are not equal.
@@ -1304,7 +1304,7 @@ fn eq<T: Eq>(xs: &List<T>, ys: &List<T>) -> bool {
1304
1304
match (xs, ys) {
1305
1305
// If we have reached the end of both lists, they are equal.
1306
1306
(&Nil, &Nil) => true,
1307
- // If the current element in both lists is equal, keep going.
1307
+ // If the current elements of both lists are equal, keep going.
1308
1308
(&Cons(ref x, ~ref next_xs), &Cons(ref y, ~ref next_ys))
1309
1309
if x == y => eq(next_xs, next_ys),
1310
1310
// If the current elements are not equal, the lists are not equal.
@@ -1333,7 +1333,7 @@ impl<T: Eq> Eq for List<T> {
1333
1333
match (self, ys) {
1334
1334
// If we have reached the end of both lists, they are equal.
1335
1335
(&Nil, &Nil) => true,
1336
- // If the current element in both lists is equal, keep going.
1336
+ // If the current elements of both lists are equal, keep going.
1337
1337
(&Cons(ref x, ~ref next_xs), &Cons(ref y, ~ref next_ys))
1338
1338
if x == y => next_xs == next_ys,
1339
1339
// If the current elements are not equal, the lists are not equal.
0 commit comments