about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-01 12:06:52 -0700
committerbors <bors@rust-lang.org>2014-05-01 12:06:52 -0700
commite4ad24f1b2f16fad780bdb433bfaaea80eb7fd1d (patch)
tree881468e38698a9900816d4018df8ea74071570ab /src
parentee03529fa9c84471f0e24d749017ce88b7d2b81e (diff)
parent000667158b7fc7f72e7ca6e8a43e9aaca834726f (diff)
downloadrust-e4ad24f1b2f16fad780bdb433bfaaea80eb7fd1d.tar.gz
rust-e4ad24f1b2f16fad780bdb433bfaaea80eb7fd1d.zip
auto merge of #13878 : brutal-chaos/rust/tutorial_grammar, r=alexcrichton
Diffstat (limited to 'src')
-rw-r--r--src/doc/tutorial.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 69e79d2b27c..94db79e0e03 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -1197,7 +1197,7 @@ fn eq(xs: &List, ys: &List) -> bool {
     match (xs, ys) {
         // If we have reached the end of both lists, they are equal.
         (&Nil, &Nil) => true,
-        // If the current element in both lists is equal, keep going.
+        // If the current elements of both lists are equal, keep going.
         (&Cons(x, ~ref next_xs), &Cons(y, ~ref next_ys))
                 if x == y => eq(next_xs, next_ys),
         // 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 {
     match (xs, ys) {
         // If we have reached the end of both lists, they are equal.
         (&Nil, &Nil) => true,
-        // If the current element in both lists is equal, keep going.
+        // If the current elements of both lists are equal, keep going.
         (&Cons(ref x, ~ref next_xs), &Cons(ref y, ~ref next_ys))
                 if x == y => eq(next_xs, next_ys),
         // If the current elements are not equal, the lists are not equal.
@@ -1333,7 +1333,7 @@ impl<T: Eq> Eq for List<T> {
         match (self, ys) {
             // If we have reached the end of both lists, they are equal.
             (&Nil, &Nil) => true,
-            // If the current element in both lists is equal, keep going.
+            // If the current elements of both lists are equal, keep going.
             (&Cons(ref x, ~ref next_xs), &Cons(ref y, ~ref next_ys))
                     if x == y => next_xs == next_ys,
             // If the current elements are not equal, the lists are not equal.