Skip to content

Commit 7e76686

Browse files
committed
Fix some typos in the documentation
1 parent 4b81eda commit 7e76686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,13 +413,13 @@ class TypeApplications(val self: Type) extends AnyVal {
413413
def translateToRepeated(from: ClassSymbol)(using Context): Type =
414414
translateParameterized(from, defn.RepeatedParamClass)
415415

416-
/** Translate `T` by `T & Object` in the situations where an `Array[T]`
416+
/** Translate `T` to `T & Object` in the situations where an `Array[T]`
417417
* coming from Java would need to be interpreted as an `Array[T & Object]`
418418
* to be erased correctly.
419419
*
420420
* This is necessary because a fully generic Java array erases to an array of Object,
421-
* whereas a fully generic Java array erases to Object to allow primitive arrays
422-
* as subtypeS.
421+
* whereas a fully generic Scala array erases to Object to allow primitive arrays
422+
* as subtypes.
423423
*
424424
* Note: According to
425425
* <http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html>,

0 commit comments

Comments
 (0)