From cad8105651cf9bf033f0186183381b745cf215dc Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Thu, 12 Mar 2020 12:14:14 +0000 Subject: [PATCH] Fix incorrect word choice (auto-correct?) --- spec/src/main/asciidoc/ELSpec.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/src/main/asciidoc/ELSpec.adoc b/spec/src/main/asciidoc/ELSpec.adoc index 839ad792..bb7a1d7d 100644 --- a/spec/src/main/asciidoc/ELSpec.adoc +++ b/spec/src/main/asciidoc/ELSpec.adoc @@ -2321,7 +2321,7 @@ whose behaviors are specified in this section. ===== Stream -An instant of `Stream` is obtained by calling the method `stream()` of +An instance of `Stream` is obtained by calling the method `stream()` of a `java.util.Collection` object or a Java array. The methods in this class support the stream operations and are described in <> to <>. @@ -2361,7 +2361,7 @@ lambda expression `other` if the `Optional` is empty. ==== Functions Some operations takes functions (lambda -expressions) as parameters. Again, we use the notion +expressions) as parameters. Again, we use the notation: `(arg1Type, ...)\->returnType` @@ -2489,7 +2489,7 @@ customers.stream().filter(c->c.country == 'USA') .toList() ---- -To obtain a list of alphabets used in a list +To obtain an alphabetical list of characters used in a list of words: ---- words.stream().flatMap(w->w.toCharArray().stream())