Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _tour/singleton-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ An object with the same name as a class is called a _companion object_. Converse

{% tab 'Scala 2' for=companion-object-circle %}
```scala
import scala.math.pow
import scala.math.{Pi, pow}

case class Circle(radius: Double) {
import Circle._
Expand All @@ -123,7 +123,7 @@ circle1.area

{% tab 'Scala 3' for=companion-object-circle %}
```scala
import scala.math.pow
import scala.math.{Pi, pow}

case class Circle(radius: Double):
import Circle.*
Expand Down