From 53f074dc423dc70024080ec3757820db551e998a Mon Sep 17 00:00:00 2001 From: Arkadiusz Chudoba <32493191+ArkadiuszChudoba@users.noreply.github.com> Date: Mon, 17 Dec 2018 16:31:27 +0100 Subject: [PATCH] Changing Traversables.scala slice description Changing ,,to" argument name to ,,until" as used in slice function source code. Second reson is that ,,to" and ,,until" have specific meaning in Scala, as represented in ranges where ,,1 until 10" is equivalent to ,,1 to 9". --- src/main/scala/stdlib/Traversables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/Traversables.scala b/src/main/scala/stdlib/Traversables.scala index 70fa4605..a5b9734b 100644 --- a/src/main/scala/stdlib/Traversables.scala +++ b/src/main/scala/stdlib/Traversables.scala @@ -277,7 +277,7 @@ object Traversables extends FlatSpec with Matchers with org.scalaexercises.defin list.init should be(res0) } - /** Given a `from` index, and a `to` index, `slice` will return the part of the collection including `from`, and excluding `to`: + /** Given a `from` index, and a `until` index, `slice` will return the part of the collection including `from`, and excluding `until`: */ def sliceFunctionTraversables(res0: List[Int]) { val list = List(10, 19, 45, 1, 22)