Skip to content

Commit aedf313

Browse files
oderskyliufengyun
andcommitted
Apply suggestions from code review
Co-authored-by: Fengyun Liu <[email protected]>
1 parent 9deb808 commit aedf313

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ class Typer extends Namer
16651665
checkRefinementNonCyclic(refinement, refineCls, seen)
16661666
val rsym = refinement.symbol
16671667
rsym.setTargetName(EmptyTermName)
1668-
// refinements can refine members with arbitrary target names, so we make their tragetnames
1668+
// refinements can refine members with arbitrary target names, so we make their target names
16691669
// polymorphic here in order to avoid to trigger the `member.isOverloaded` test below.
16701670
val polymorphicRefinementAllowed =
16711671
tpt1.tpe.typeSymbol == defn.PolyFunctionClass && rsym.name == nme.apply

docs/docs/reference/other-new-features/targetName.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: doc-page
33
title: The @targetName annotation
44
---
55

6-
A `@targetName` annotation on a definition defines an alternate name for the implementation of that definition: Example:
6+
A `@targetName` annotation on a definition defines an alternate name for the implementation of that definition. Example:
77
```scala
88
import scala.annotation.targetName
99

0 commit comments

Comments
 (0)