From 5a25537faf5863897f255a4f85dc0a8953dc3a58 Mon Sep 17 00:00:00 2001 From: Matej Lach Date: Wed, 24 Sep 2014 13:35:33 +0100 Subject: [PATCH 1/2] Correct typo in the Iterator adapters section --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 6a27cf2f1ef1f..271d0bba92449 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -4489,7 +4489,7 @@ This will print ``` `filter()` is an adapter that takes a closure as an argument. This closure -returns `true` or `false`. The new iterator `filter()` produces returns +returns `true` or `false`. The new iterator `filter()` produces only the elements that that closure returned `true` for: ```{rust} From 9ca399f14e4a29d744ea3e8f04377a5569d338b3 Mon Sep 17 00:00:00 2001 From: Matej Lach Date: Thu, 25 Sep 2014 16:13:20 +0100 Subject: [PATCH 2/2] Correct tense --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 271d0bba92449..091437409c33e 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -4490,7 +4490,7 @@ This will print `filter()` is an adapter that takes a closure as an argument. This closure returns `true` or `false`. The new iterator `filter()` produces -only the elements that that closure returned `true` for: +only the elements that that closure returns `true` for: ```{rust} for i in range(1i, 100i).filter(|x| x % 2 == 0) {