diff --git a/src/doc/guide.md b/src/doc/guide.md index 6a27cf2f1ef1f..091437409c33e 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -4489,8 +4489,8 @@ 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 -only the elements that that closure returned `true` for: +returns `true` or `false`. The new iterator `filter()` produces +only the elements that that closure returns `true` for: ```{rust} for i in range(1i, 100i).filter(|x| x % 2 == 0) {