From a3ae415b7676a798ad284423ebbb3d51b250a88c Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Wed, 3 Nov 2021 14:24:04 +0100 Subject: [PATCH] adjust download Scala 3 page --- _includes/downloads-scala3.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_includes/downloads-scala3.html b/_includes/downloads-scala3.html index c7b633e86..37afacdc3 100644 --- a/_includes/downloads-scala3.html +++ b/_includes/downloads-scala3.html @@ -61,15 +61,16 @@

Then, prepare your environment

Then, install Scala 3

Open a terminal and run the following commands:

cs install scala3-compilerto install the Scala 3 compiler.

-

cs install scala3-replto install the Scala 3 interactive read-eval-print loop.

+

cs install scala3to install the Scala 3 code runner

3

Use Scala 3

-

The command scala3-repl will start a Scala console that you can use to interactively evaluate Scala programs. Within this console, run the command :load test.scala to load and execute the file test.scala.

-

To use the Scala 3 compiler to compile a file test.scala simply runscala3-compiler test.scala in your terminal.

+

The command scala3 will start the Scala console, it is an interactive read-eval-print-loop that you can use to directly enter and run Scala expressions.

+

To use the Scala 3 compiler to compile a file test.scala, runscala3-compiler test.scala in your terminal.

+

The command scala3 hello Scala will run the main method of a class called hello, passing the argument "Scala".