We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57b7aba + 8a7f1b7 commit a815e66Copy full SHA for a815e66
_tour/singleton-objects.md
@@ -104,7 +104,7 @@ An object with the same name as a class is called a _companion object_. Converse
104
105
{% tab 'Scala 2' for=companion-object-circle %}
106
```scala
107
-import scala.math.pow
+import scala.math.{Pi, pow}
108
109
case class Circle(radius: Double) {
110
import Circle._
@@ -123,7 +123,7 @@ circle1.area
123
124
{% tab 'Scala 3' for=companion-object-circle %}
125
126
127
128
case class Circle(radius: Double):
129
import Circle.*
0 commit comments