Skip to content

Commit e0218a9

Browse files
Fix typo
1 parent ed567c1 commit e0218a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src-3.x/scala/Tuple.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sealed trait Tuple extends Any {
4747
val t = asInstanceOf[Tuple4[_, _, _, _]]
4848
Tuple5(x, t._1, t._2, t._3, t._4).asInstanceOf[Result]
4949
case Some(n) =>
50-
knowTupleFromArray[H *: this.type](cons$Array(x, toArray))
50+
knownTupleFromArray[H *: this.type](cons$Array(x, toArray))
5151
case _ =>
5252
runtime.DynamicTuple.dynamic_*:[This, H](this, x)
5353
}
@@ -93,7 +93,7 @@ sealed trait Tuple extends Any {
9393
}
9494

9595
inline def genericConcat[T <: Tuple](xs: Tuple, ys: Tuple): Tuple =
96-
knowTupleFromArray[T](xs.toArray ++ ys.toArray)
96+
knownTupleFromArray[T](xs.toArray ++ ys.toArray)
9797

9898
inline def size[This >: this.type <: Tuple]: Size[This] = {
9999
type Result = Size[This]
@@ -164,7 +164,7 @@ object Tuple {
164164
elems1
165165
}
166166

167-
private[scala] inline def knowTupleFromArray[T <: Tuple](xs: Array[Object]): T =
167+
private[scala] inline def knownTupleFromArray[T <: Tuple](xs: Array[Object]): T =
168168
inline constValue[BoundedSize[T]] match {
169169
case 0 => ().asInstanceOf[T]
170170
case 1 => Tuple1(xs(0)).asInstanceOf[T]
@@ -249,7 +249,7 @@ sealed trait NonEmptyTuple extends Tuple {
249249
val t = asInstanceOf[Tuple5[_, _, _, _, _]]
250250
Tuple4(t._2, t._3, t._4, t._5).asInstanceOf[Result]
251251
case Some(n) if n > 5 =>
252-
knowTupleFromArray[Result](toArray.tail)
252+
knownTupleFromArray[Result](toArray.tail)
253253
case None =>
254254
runtime.DynamicTuple.dynamicTail[This](this)
255255
}

0 commit comments

Comments
 (0)