diff --git a/docs/lec8.md b/docs/lec8.md index 2e1e72a..fe6c7f0 100644 --- a/docs/lec8.md +++ b/docs/lec8.md @@ -331,7 +331,7 @@ Here are more useful terminal operations: - *`noneMatch`* return true if none of the elements pass the given predicate. - *`allMatch`* return true if every element passes the given predicate. -- *`anyMatch`* return true if no elements passes the given predicate. +- *`anyMatch`* return true if any of the elements passes the given predicate. ### Example 1: Is this a prime?