Skip to content

Commit 4aa80cd

Browse files
vanniktechakarnokd
authored andcommitted
2.x: Observable.range fix Exception message (#4296)
1 parent 7beda2a commit 4aa80cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/reactivex/Observable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ public static <T> Observable<T> never() {
862862
@SchedulerSupport(SchedulerSupport.NONE)
863863
public static Observable<Integer> range(final int start, final int count) {
864864
if (count < 0) {
865-
throw new IllegalArgumentException("count >= required but it was " + count);
865+
throw new IllegalArgumentException("count >= 0 required but it was " + count);
866866
} else
867867
if (count == 0) {
868868
return empty();

0 commit comments

Comments
 (0)