Skip to content

Commit

Permalink
Update README.md bump Scala version
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornregnell authored Nov 8, 2024
1 parent a3ce24b commit e86d1dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ This repo is used in this course *(in Swedish)*: http://cs.lth.se/pgk with cours

You need [Scala Command Line Interface](https://scala-cli.virtuslab.org/install) at least version 1.0.0.

Add these magic comment lines starting with `//>` in the beginning of your Scala 3 file:
Add these magic comment lines starting with `//>` in the beginning of your Scala 3 file (bump your Scala version to the latest available):

```
//> using scala 3.3
//> using lib se.lth.cs::introprog:1.3.1
//> using scala 3.5.2
//> using dep se.lth.cs::introprog:1.3.1
```

You run your code with `scala-cli run .` (note the ending dot, meaning "this dir")

If your program looks like this:

```
//> using scala 3.3
//> using lib se.lth.cs::introprog:1.4.0
//> using scala 3.5.2
//> using dep se.lth.cs::introprog:1.4.0
@main def run =
val w = introprog.PixelWindow()
Expand Down

0 comments on commit e86d1dd

Please sign in to comment.