From da7e891e1fa3f67048b004d7923770cf19bd3b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=C5=ADlo=20Ebermann?= Date: Fri, 12 Feb 2021 13:00:04 +0100 Subject: [PATCH] fix typo in range rationale With `range = 0.rangeTo(9)` the code would actually print `true`. --- src/collections/reversedRanges/Rationale.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collections/reversedRanges/Rationale.md b/src/collections/reversedRanges/Rationale.md index 69e38c6..14001f3 100644 --- a/src/collections/reversedRanges/Rationale.md +++ b/src/collections/reversedRanges/Rationale.md @@ -1,6 +1,6 @@ Correct answer: **b) false** - * `0..10` is an overloaded operator function call for `0.rangeTo(9)` + * `0..10` is an overloaded operator function call for `0.rangeTo(10)` * `rangeTo` produces an `IntRange : IntProgression, ClosedRange` object * `rangeTo` is an inclusive factory: `[from, to]`, while `until` would be exclusive at the end: `[from, to)` * `0..10` is therefore and `IntRange` over `0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10` (11 values)