Skip to content

Commit c9d27ca

Browse files
author
Ali Hong
committed
Replace 'filter' with 'guard' for consistency
1 parent 7e34537 commit c9d27ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/for-comprehensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ redirect_from:
1212
- "/tutorials/tour/sequence-comprehensions.html"
1313
---
1414

15-
Scala offers a lightweight notation for expressing _sequence comprehensions_. Comprehensions have the form `for (enumerators) yield e`, where `enumerators` refers to a list of enumerators. An _enumerator_ is either a generator which introduces new variables, or it is a filter. A comprehension evaluates the body `e` for each binding generated by the enumerators and returns a sequence of these values.
15+
Scala offers a lightweight notation for expressing _sequence comprehensions_. Comprehensions have the form `for (enumerators) yield e`, where `enumerators` refers to a list of enumerators. An _enumerator_ is either a generator which introduces new variables, or it is a guard. A comprehension evaluates the body `e` for each binding generated by the enumerators and returns a sequence of these values.
1616

1717
Here's an example:
1818

0 commit comments

Comments
 (0)