Skip to content

Commit

Permalink
Merge pull request #274 from Kivanval/fix/desc
Browse files Browse the repository at this point in the history
Correcting a comment in StreamEx.java
  • Loading branch information
amaembo committed Nov 29, 2023
2 parents a26d9c5 + 22b1f1f commit 76474a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/one/util/streamex/StreamEx.java
Original file line number Diff line number Diff line change
Expand Up @@ -2969,7 +2969,7 @@ public static <T> StreamEx<T> constant(T value, long length) {
* {@code mapper.apply(list.get(0), list.get(1))},
* {@code mapper.apply(list.get(0), list.get(2))} and
* {@code mapper.apply(list.get(1), list.get(2))}. The number of elements in
* the resulting stream is {@code list.size()*(list.size()+1L)/2}.
* the resulting stream is {@code list.size() * (list.size() - 1L) / 2}.
*
* <p>
* The list values are accessed using {@link List#get(int)}, so the list
Expand Down Expand Up @@ -3002,7 +3002,7 @@ public static <U, T> StreamEx<T> ofPairs(List<U> list, BiFunction<? super U, ? s
* {@code mapper.apply(array[0], array[1])},
* {@code mapper.apply(array[0], array[2])} and
* {@code mapper.apply(array[1], array[2])}. The number of elements in the
* resulting stream is {@code array.length*(array.length+1L)/2}.
* resulting stream is {@code array.length * (array.length - 1L) / 2}.
*
* @param <U> type of the array elements
* @param <T> type of the stream elements
Expand Down

0 comments on commit 76474a2

Please sign in to comment.