Skip to content

Commit f2d9681

Browse files
committed
correct 2&3 and 3 only.
1 parent 5f38363 commit f2d9681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/taste-toplevel-definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ As shown, there’s no need to put those definitions inside a `package`, `class`
4949
If you’re familiar with Scala 2, this approach replaces _package objects_.
5050
But while being much easier to use, they work similarly: When you place a definition in a package named _foo_, you can then access that definition under all other packages under _foo_, such as within the _foo.bar_ package in this example:
5151

52-
{% tabs toplevel_2 class=tabs-scala-version %}
52+
{% tabs toplevel_2 %}
5353
{% tab 'Scala 3 only' for=toplevel_2 %}
5454
```scala
5555
package foo {

0 commit comments

Comments
 (0)