Skip to content

Commit e0e7f57

Browse files
committed
Fix a link changed in Scala 3.0.0-RC1 reference
1 parent 984a484 commit e0e7f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/PatternMatching.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ object PatternMatching {
6565
case s => println(s"$s has an odd number of characters")
6666
}
6767

68-
// https://dotty.epfl.ch/docs/reference/changed-features/vararg-patterns.html
68+
// https://dotty.epfl.ch/docs/reference/changed-features/vararg-splices.html
6969
def containsConsecutive(list: List[Int]): Boolean = list match {
7070
case List(a, b, xs: _*) => if (a == b) true else containsConsecutive(b :: xs.toList)
7171
case Nil | List(_, _: _*) => false

0 commit comments

Comments
 (0)