Skip to content

Commit 8a7f1b7

Browse files
committed
Make the imports in the same style for Scala 2 and 3
1 parent 2cac84a commit 8a7f1b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_tour/singleton-objects.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ An object with the same name as a class is called a _companion object_. Converse
104104

105105
{% tab 'Scala 2' for=companion-object-circle %}
106106
```scala
107-
import scala.math.Pi
108-
import scala.math.pow
107+
import scala.math.{Pi, pow}
109108

110109
case class Circle(radius: Double) {
111110
import Circle._

0 commit comments

Comments
 (0)