Skip to content

Commit 48b9ece

Browse files
committed
Change canThrow to throws
1 parent 0a7655f commit 48b9ece

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blog/_posts/2021-10-21-scala-3.1.0-released.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ post-type: blog
44
by: Paweł Marks, VirtusLab
55
title: Scala 3.1.0 released!
66
---
7+
78
Hello from the Scala 3 team! It has already been six weeks since we have announced the release candidate for the first minor version after the initial release of Scala 3. Now, after two more RCs, we can confidently promote Scala 3.1.0-RC3 to a new stable release of the language. In other words, Scala 3.1.0 is officially out!
89

910
## Compatibility notice
@@ -32,7 +33,7 @@ import language.experimental.saferExceptions
3233
Now it is possible to mark types with the type of exception that can be thrown during the evaluation:
3334

3435
```scala
35-
def f(x: Double): Double canThrow LimitExceeded =
36+
def f(x: Double): Double throws LimitExceeded =
3637
if x < limit then f(x) else throw LimitExceeded()
3738
```
3839

0 commit comments

Comments
 (0)