Skip to content

Commit 623246c

Browse files
committed
Merge remote-tracking branch 'origin/main' into nightly-builds-doc-page
2 parents c0b1523 + 1828c47 commit 623246c

32 files changed

+3496
-84
lines changed

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ GEM
251251
rb-fsevent (0.11.2)
252252
rb-inotify (0.10.1)
253253
ffi (~> 1.0)
254-
rexml (3.2.8)
255-
strscan (>= 3.0.9)
254+
rexml (3.3.6)
255+
strscan
256256
rouge (3.30.0)
257257
ruby2_keywords (0.0.5)
258258
rubyzip (2.3.2)

_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ keywords:
1616
- Guide
1717

1818
scala-version: 2.13.14
19-
scala-212-version: 2.12.19
20-
scala-3-version: 3.4.2
19+
scala-212-version: 2.12.20
20+
scala-3-version: 3.5.0
2121

2222
collections:
2323
style:

_data/setup-scala.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ linux-x86-64: curl -fL https://github.com/coursier/coursier/releases/latest/down
22
linux-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
33
macOS-x86-64: curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
44
macOS-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
5-
macOS-brew: brew install coursier/formulas/coursier && cs setup
5+
macOS-brew: brew install coursier && coursier setup
66
windows-link: https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-win32.zip

_includes/_markdown/install-munit.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ Alternatively, you can require just a specific version of MUnit:
1616
{% tab 'sbt' %}
1717
In your build.sbt file, you can add the dependency on toolkit-test:
1818
```scala
19-
lazy val example = project.in(file("example"))
19+
lazy val example = project.in(file("."))
2020
.settings(
2121
scalaVersion := "3.3.3",
2222
libraryDependencies += "org.scala-lang" %% "toolkit-test" % "0.1.7" % Test
2323
)
2424
```
25-
Here the `Test` configuration means that the dependency is only used by the source files in `example/src/test`.
25+
26+
Here the `Test` configuration means that the dependency is only used by the source files in `src/test`.
2627

2728
Alternatively, you can require just a specific version of MUnit:
2829
```scala

_includes/_markdown/install-os-lib.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Alternatively, you can require just a specific version of OS-Lib:
1515
{% tab 'sbt' %}
1616
In your `build.sbt`, you can add a dependency on the toolkit:
1717
```scala
18-
lazy val example = project.in(file("example"))
18+
lazy val example = project.in(file("."))
1919
.settings(
2020
scalaVersion := "3.3.3",
2121
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.1.7"

_includes/_markdown/install-sttp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Alternatively, you can require just a specific version of sttp:
1515
{% tab 'sbt' %}
1616
In your build.sbt file, you can add a dependency on the Toolkit:
1717
```scala
18-
lazy val example = project.in(file("example"))
18+
lazy val example = project.in(file("."))
1919
.settings(
2020
scalaVersion := "3.3.3",
2121
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.1.7"

_includes/_markdown/install-upickle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Alternatively, you can require just a specific version of UPickle:
1515
{% tab 'sbt' %}
1616
In your build.sbt file, you can add the dependency on the Toolkit:
1717
```scala
18-
lazy val example = project.in(file("example"))
18+
lazy val example = project.in(file("."))
1919
.settings(
2020
scalaVersion := "3.3.3",
2121
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.1.7"

_ja/overviews/macros/usecases.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Scala の商用ユーザと研究ユーザの両方がマクロを利用して
2020
ここ EPFL においても我々はマクロを活用して研究を行っている。Lightbend 社もマクロを数々のプロジェクトに採用している。
2121
マクロはコミュニティー内でも人気があり、既にいくつかの興味深い応用が現れている。
2222

23-
最近行われた講演の ["What Are Macros Good For?"](hxxps://scalamacros.org/paperstalks/2014-02-04-WhatAreMacrosGoodFor.pdf) では Scala 2.10 ユーザのマクロの利用方法を説明し、システム化した。講演の大筋はマクロはコード生成、静的な検査、および DSL に有効であるということで、これを研究や産業からの例を交えながら説明した。
23+
最近行われた講演の ["What Are Macros Good For?"](https://github.com/scalamacros/scalamacros.github.com/blob/5904f7ef88a439c668204b4bf262835e89fb13cb/paperstalks/2014-02-04-WhatAreMacrosGoodFor.pdf) では Scala 2.10 ユーザのマクロの利用方法を説明し、システム化した。講演の大筋はマクロはコード生成、静的な検査、および DSL に有効であるということで、これを研究や産業からの例を交えながら説明した。
2424

25-
Scala'13 ワークショップにおいて ["Scala Macros: Let Our Powers Combine!"](hxxps://scalamacros.org/paperstalks/2013-04-22-LetOurPowersCombine.pdf) という論文を発表した。これは Scala 2.10 における最先端のマクロ論をより学問的な視点から説明した。
25+
Scala'13 ワークショップにおいて ["Scala Macros: Let Our Powers Combine!"](https://github.com/scalamacros/scalamacros.github.com/blob/5904f7ef88a439c668204b4bf262835e89fb13cb/paperstalks/2013-04-22-LetOurPowersCombine.pdf) という論文を発表した。これは Scala 2.10 における最先端のマクロ論をより学問的な視点から説明した。
2626
この論文では Scala のリッチな構文と静的な型がマクロと相乗することを示し、また既存の言語機能をマクロによって新しい方法で活用できることを考察する。

_overviews/collections-2.13/trait-iterable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ res7: List[Int] = List(3, 4, 5)
133133
| `xs.count(p)` |The number of elements in `xs` that satisfy the predicate `p`.|
134134
| **Folds:** | |
135135
| `xs.foldLeft(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going left to right and starting with `z`.|
136-
| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and ending with `z`.|
136+
| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and starting with `z`.|
137137
| `xs.reduceLeft(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going left to right.|
138138
| `xs.reduceRight(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going right to left.|
139139
| **Specific Folds:** | |

_overviews/getting-started/index.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Install it on your system with the following instructions.
5151
{% tab macOS for=install-cs-setup-tabs %}
5252
Run the following command in your terminal, following the on-screen instructions:
5353
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-brew %}
54-
{% altDetails cs-setup-macos-nobrew "Alternatively for Apple Silicon, or if you don't use Homebrew:" %}
54+
{% altDetails cs-setup-macos-nobrew "Alternatively, if you don't use Homebrew:" %}
5555
On the Apple Silicon (M1, M2, …) architecture:
5656
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-arm64 %}
5757
Otherwise, on the x86-64 architecture:
@@ -111,8 +111,7 @@ Along with managing JVMs, `cs setup` also installs useful command-line tools:
111111
| Commands | Description |
112112
|----------|-------------|
113113
| `scalac` | the Scala compiler |
114-
| `scala` | the Scala REPL and script runner |
115-
| `scala-cli`| [Scala CLI](https://scala-cli.virtuslab.org), interactive toolkit for Scala |
114+
| `scala`, `scala-cli` | [Scala CLI](https://scala-cli.virtuslab.org), interactive toolkit for Scala |
116115
| `sbt`, `sbtn` | The [sbt](https://www.scala-sbt.org/) build tool |
117116
| `amm` | [Ammonite](https://ammonite.io/) is an enhanced REPL |
118117
| `scalafmt` | [Scalafmt](https://scalameta.org/scalafmt/) is the Scala code formatter |

_overviews/jdk-compatibility/overview.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Minimum Scala versions:
1414

1515
| JDK | 3 | 2.13 | 2.12 | 2.11 |
1616
|:-----------:|:--------:|:---------:|:---------:|:----------:|
17-
| 23 (ea) | 3.3.5* | 2.13.15* | 2.12.20* | |
17+
| 23 (ea) | 3.3.5* | 2.13.15* | 2.12.20 | |
1818
| 22 | 3.3.4* | 2.13.13 | 2.12.19 | |
1919
| 21 (LTS) | 3.3.1 | 2.13.11 | 2.12.18 | |
2020
| 17 (LTS) | 3.0.0 | 2.13.6 | 2.12.15 | |
@@ -125,7 +125,9 @@ For possible Scala issues, see the [jdk11](https://github.com/scala/bug/labels/j
125125

126126
Early access builds of JDK 23 are available. JDK 23 will be non-LTS.
127127

128-
We are working on adding JDK 23 support to Scala 3 and Scala 2.
128+
Scala 2.12.20+ supports JDK 23.
129+
130+
We are working on adding JDK 23 support to Scala 3 and Scala 2.13.
129131
(Support may be available in nightly builds.)
130132

131133
For possible Scala issues, see the [jdk11](https://github.com/scala/bug/labels/jdk11), [jdk17](https://github.com/scala/bug/labels/jdk17), and [jdk21](https://github.com/scala/bug/labels/jdk21) labels in the Scala 2 bug tracker.

_overviews/scala3-book/ca-implicit-conversions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ object `Conversions`:
150150
import scala.language.implicitConversions
151151

152152
object Conversions {
153-
implicit def fromStringToUser(name: String): User = (name: String) => User(name)
153+
implicit def fromStringToUser(name: String): User = User(name)
154154
}
155155
~~~
156156
{% endtab %}

_overviews/scala3-book/domain-modeling-fp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ extension (p: Pizza)
777777
p.copy(crustType = ct)
778778
```
779779
In the above code, we define the different methods on pizzas as _extension methods_.
780-
With `extension (p: Pizza)` we say that we want to make the methods available on instances of `Pizza`. The reciever
780+
With `extension (p: Pizza)` we say that we want to make the methods available on instances of `Pizza`. The receiver
781781
in this case is `p`.
782782

783783
{% endtab %}

_overviews/toolkit/testing-run-only.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ scala-cli test example --test-only example.MyTests
2222
{% tab 'sbt' %}
2323
To run a single `example.MyTests` suite in sbt, use the `testOnly` task:
2424
```
25-
sbt:example> example/testOnly example.MyTests
25+
sbt:example> testOnly example.MyTests
2626
```
2727
{% endtab %}
2828
{% tab 'Mill' %}

_overviews/toolkit/testing-run.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ scala-cli test example
2727
{% tab 'sbt' %}
2828
In the sbt shell, the following command runs all the tests of the project `example`:
2929
```
30-
sbt:example> example/test
30+
sbt:example> test
3131
# MyTests:
3232
# + sum of two integers 0.006s
3333
# [info] Passed: Total 1, Failed 0, Errors 0, Passed 1
@@ -74,7 +74,7 @@ test("failing test") {
7474
```
7575
# MyTests:
7676
# + sum of two integers 0.008s
77-
# ==> X MyTests.failing test 0.015s munit.ComparisonFailException: ./example/MyTests.test.scala:13
77+
# ==> X MyTests.failing test 0.015s munit.ComparisonFailException: ./MyTests.test.scala:13
7878
# 12: val expected = 4
7979
# 13: assertEquals(obtained, expected)
8080
# 14: }

_sips/sips/alternative-bind-patterns.md

-7
This file was deleted.

0 commit comments

Comments
 (0)