Skip to content

Commit 463e48d

Browse files
fixed the typo described in issue #96 (#129)
1 parent f0fadfe commit 463e48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/pages/learn/01_tutorial/03_getting-to-know-the-language/03_refactoring_to_functional_style/03_converting_foreach_with_if.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ for(String name: names) {
7676

7777
For the functional style, the `filter` method of `Stream` becomes a direct replacement of the imperative style `if`. The `filter` method will allow an element in the collection to pass through to the next stage in the functional pipeline if the predicate, passed in as a lambda, to the `filter()` method evaluates to `true`; otherwise, the value is discarded from further processing.
7878

79-
Let's conver the previous code to functional style:
79+
Let's convert the previous code to functional style:
8080

8181
```java
8282
List<String> names = List.of("Jack", "Paula", "Kate", "Peter");

0 commit comments

Comments
 (0)