Skip to content

Commit b25e4ff

Browse files
committed
Small tweaks in wording
1 parent c0ce202 commit b25e4ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/CheckRealizable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class CheckRealizable(implicit ctx: Context) {
200200
}
201201
}
202202
if sourceVersion.isAtLeast(`3.1`) then
203-
// check fields only under strict mode for now.
203+
// check fields only from version 3.1.
204204
// Reason: An embedded field could well be nullable, which means it
205205
// should not be part of a path and need not be checked; but we cannot recognize
206206
// this situation until we have a typesystem that tracks nullability.

docs/docs/usage/language-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The default Scala language version currently supported by the Dotty compiler is
1414
- gives some additional warnings where the semantics has changed between Scala 2.13 and 3.0
1515
- in conjunction with `-rewrite`, offer code rewrites from Scala 2.13 to 3.0.
1616

17-
- `3.1-migration: Same as `3.1` but with additional helps to migrate from `3.0`. The helpers are similar to, but less extensive than, the ones for `3.0-migration`.
17+
- `3.1-migration: Same as `3.1` but with additional helpers to migrate from `3.0`. Similarly to the helpers available under `3.0-migration`, these include migration warnings and optional rewrites.
1818

1919
There are two ways to specify a language version.
2020

0 commit comments

Comments
 (0)