Skip to content

Commit a484d57

Browse files
committed
Correct some grammar
1 parent 1d172b1 commit a484d57

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

blog/_posts/2022-02-01-scala-3.1.1-released.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ title: Scala 3.1.1 and forward compatibility news
77

88
Hello from the Scala 3 team! We are back with a new release of the Scala compiler and some exciting news about improvements in forward compatibility.
99

10-
## Improvements is Scala 3.1.1
10+
## Improvements in Scala 3.1.1
1111

12-
Scala 3.1.1 is the patch release focused on bug fixes. Although there are no new additions to the language, you can still spot some noticeable improvements:
12+
Scala 3.1.1 is a patch release focused on bug fixes. Although there are no new additions to the language, you can still spot some noticeable improvements:
1313

1414
- You can use `using` clauses to introduce subtyping relations between types in the function body.
1515

16-
Now, the code like below should compile. Any value of type `A` can be used where a value of type `B` is expected as long as a given instance of `A <:< B` is in scope:
16+
Now, code like the following should compile. Any value of type `A` can be used where a value of type `B` is expected as long as a given instance of `A <:< B` is in scope:
1717

1818
```scala
1919
def example[A, B](a: A)(using A <:< B) =
2020
val b: B = a
2121
???
2222
```
2323

24-
To know more see [PR #13662](https://github.com/lampepfl/dotty/pull/13662) and [related issue](https://github.com/lampepfl/dotty/issues/12955).
24+
To learn more see [PR #13662](https://github.com/lampepfl/dotty/pull/13662) and [related issue](https://github.com/lampepfl/dotty/issues/12955).
2525
- Mirrors can be correctly summoned for hierarchical sum types compiled by Scala 3.0.x. It is now safe to derive a type class for a type dependency that was compiled with a pre-3.1.0 compiler. ([PR #14100](https://github.com/lampepfl/dotty/pull/14100)).
2626
- Dual Scala 2/3 macros can be now declared in non-experimental scopes ([PR #13795](https://github.com/lampepfl/dotty/pull/13795)).
2727
- Scaladoc documentation has an improved UI.
@@ -30,7 +30,7 @@ For a comprehensive list of fixes, take a look at [the full changelog on GitHub]
3030

3131
## 3.1.2-RC1 and forward compatibility improvements
3232

33-
Together with 3.1.1 we have released the first RC version of the next patch release of the compiler. 3.1.2-RC1 contains further fixes, but most importantly it is our first step in improving forward compatibility in Scala.
33+
Alongside 3.1.1 we have released the first RC version of the next patch release of the compiler. 3.1.2-RC1 contains further fixes, but most importantly it is our first step in improving forward compatibility in Scala.
3434

3535
Scala 3 has excellent backward compatibility guarantees between the minor versions. Right now, that means that code compiled with Scala 3.1 can depend on libraries published with 3.0 without any problems. The opposite, hovewer, is not true. Code compiled with 3.0 is not able to read dependencies compiled with 3.1. After the recent release of Scala 3.1.0, we can see that libraries should be really cautious with updating the compiler version, as it forces a bump on every user of that library. We do not want library authors to be stuck on old versions of the compiler as that would mean that they are locked out of many bugfixes, or we would need to spend enormous effort on backporting every bugfix to all past versioning lines.
3636

0 commit comments

Comments
 (0)