From 9aec2baff41790ad28e1452c768e833f364579b4 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 3 Mar 2016 12:02:00 +0200 Subject: [PATCH] Hotfix skip operator, update readme --- README.md | 2 +- src/main/java/com/annimon/stream/Stream.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ef1257d7..0cd489b9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Stream.of(/* array | list | set | map | anything based on Iterator/Iterable inte .sorted() .forEach(..); Stream.of(value1, value2, value3)... -Stream.ofRange(0, 10)... +Stream.range(0, 10)... ``` Example project: https://github.com/aNNiMON/Android-Java-8-Stream-Example diff --git a/src/main/java/com/annimon/stream/Stream.java b/src/main/java/com/annimon/stream/Stream.java index e39c6a9c..5368e6a1 100644 --- a/src/main/java/com/annimon/stream/Stream.java +++ b/src/main/java/com/annimon/stream/Stream.java @@ -729,7 +729,6 @@ public boolean hasNext() { iterator.next(); skippedCount++; } - return true; } return iterator.hasNext(); }