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

Update scala 2.12 to 2.12.16 in docs #1108

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ case object UsingScalaVersionDirectiveHandler extends UsingDirectiveHandler {
"//> using scala \"3.0.2\"",
"//> using scala \"2.13\"",
"//> using scala \"2\"",
"//> using scala \"2.13.6\", \"2.12.15\""
"//> using scala \"2.13.6\", \"2.12.16\""
)

def keys = Seq("scala")
Expand Down
2 changes: 1 addition & 1 deletion website/docs/commands/compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ scala-cli -S 2.13.8 --scalac-help

Other scalac print help options (like `-X`, `-Xshow-phases`, `-Vphases`, etc.) are supported as well.
```bash
scala-cli -S 2.12.15 -Xshow-phases
scala-cli -S 2.12.16 -Xshow-phases
#
# phase name id description
# ---------- -- -----------
Expand Down
8 changes: 4 additions & 4 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\.15
Scala: 2\.12\.16
-->

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.15` 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).

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\.15
Scala: 2\.12\.16
-->

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

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
2 changes: 1 addition & 1 deletion website/docs/reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Set the default Scala version

`//> using scala "2"`

`//> using scala "2.13.6", "2.12.15"`
`//> using scala "2.13.6", "2.12.16"`

### Scala.js options

Expand Down