Skip to content

Commit a3ae415

Browse files
committed
adjust download Scala 3 page
1 parent 11a75ca commit a3ae415

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_includes/downloads-scala3.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,16 @@ <h3>Then, prepare your environment</h3>
6161
<h3>Then, install Scala 3</h3>
6262
<p>Open a terminal and run the following commands:</p>
6363
<p><code>cs install scala3-compiler</code><span>to install the Scala 3 compiler.</span></p>
64-
<p><code>cs install scala3-repl</code><span>to install the Scala 3 interactive read-eval-print loop.</span></p>
64+
<p><code>cs install scala3</code><span>to install the Scala 3 code runner</span></p>
6565
</div>
6666
</div>
6767
<div class="step">
6868
<div class="number-step">3</div>
6969
<div class="text-step">
7070
<h3>Use Scala 3</h3>
71-
<p>The command <code>scala3-repl</code> will start a Scala console that you can use to interactively evaluate Scala programs. Within this console, run the command <code>:load test.scala</code> to load and execute the file <code>test.scala</code>.</p>
72-
<p>To use the Scala 3 compiler to compile a file <code>test.scala</code> simply run<code>scala3-compiler test.scala</code> in your terminal.</p>
71+
<p>The command <code>scala3</code> will start the Scala console, it is an interactive read-eval-print-loop that you can use to directly enter and run Scala expressions.</p>
72+
<p>To use the Scala 3 compiler to compile a file <code>test.scala</code>, run<code>scala3-compiler test.scala</code> in your terminal.</p>
73+
<p>The command <code>scala3 hello Scala</code> will run the main method of a class called <code>hello</code>, passing the argument <code>"Scala"</code>.</p>
7374
</div>
7475
</div>
7576
</div>

0 commit comments

Comments
 (0)