Skip to content

Commit 61580cf

Browse files
fix: fix various issue
1 parent 7cbeea1 commit 61580cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_overviews/scala3-migration/tooling-syntax-rewriting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ We will be able to move it to new syntax automatically in two steps: first by us
9696

9797
We can use the `-new-syntax -rewrite` options by adding them to the list of scalac options in our build tool.
9898

99-
{% tabs scala-3-location_1 %}
100-
{% tab 'Scala 3 Only' %}
99+
{% tabs sbt-location %}
100+
{% tab 'sbt' %}
101101
```scala
102-
// build.sbt
102+
// build.sbt, for Scala 3 project
103103
scalacOptions ++= Seq("-new-syntax", "-rewrite")
104104
```
105105
{% endtab %}
@@ -138,7 +138,7 @@ After this first rewrite, we can use the significant indentation syntax to remov
138138
To do that we use the `-indent` option in combination with the `-rewrite` option.
139139
It leads us to the following version:
140140

141-
{% tabs scala-3-location_2 %}
141+
{% tabs scala-3-location_3 %}
142142
{% tab 'Scala 3 Only' %}
143143
```scala
144144
case class State(n: Int, minValue: Int, maxValue: Int):
@@ -166,7 +166,7 @@ Starting from the latest state of our code sample, we can move backwards to its
166166
Let's rewrite the code using braces while retaining the new control structures.
167167
After compiling with the `-no-indent -rewrite` options, we obtain the following result:
168168

169-
{% tabs scala-3-location_3 %}
169+
{% tabs scala-3-location_4 %}
170170
{% tab 'Scala 3 Only' %}
171171
```scala
172172
case class State(n: Int, minValue: Int, maxValue: Int) {

0 commit comments

Comments
 (0)