Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump scala 2 version in docs #1408

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions website/docs/cookbooks/scala-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ and this:
scala-cli -S 2.12 ScalaVersion.scala
```
<!-- Expected-regex:
Scala: 2\.12\.16
Scala: 2\.12\.17
-->

In the first example (`-S 2`), the application picks up the latest Scala 2 stable release (`2.13.7` at the time of this writing).
In the second example, the application picks up the latest stable release of `2.12` (which is `2.12.16` at the time of this writing).
In the first example (`-S 2`), the application picks up the latest Scala 2 stable release (`2.13.9` at the time of this writing).
In the second example, the application picks up the latest stable release of `2.12` (which is `2.12.17` at the time of this writing).

You can also pin the version of the language within a `.scala` file with `using` directives.

Expand All @@ -103,10 +103,10 @@ scala-cli ScalaVersion.scala version.scala
```

<!-- Expected-regex:
Scala: 2\.12\.16
Scala: 2\.12\.17
-->

The output at the time of this writing is "`2.12.16`".
The output at the time of this writing is "`2.12.17`".

The `scala-cli` philosophy is “command line first,” so any configuration information that’s passed to the command line will override `using` directives. So when you run this command with the `-S` option:

Expand Down