Skip to content

Commit 04774ba

Browse files
committed
drop extension from link
1 parent b65958f commit 04774ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/experimental/canthrow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In the _effects as abilities_ model, an effect is expressed as an (implicit) par
6262
```scala
6363
erased class CanThrow[-E <: Exception]
6464
```
65-
This shows another experimental Scala feature: [erased definitions](../metaprogramming/erased-terms.html). Roughly speaking, values of an erased class do not generate runtime code; they are erased before code generation. This means that all `CanThrow` abilities are compile-time only artifacts; they do not have a runtime footprint.
65+
This shows another experimental Scala feature: [erased definitions](../metaprogramming/erased-terms). Roughly speaking, values of an erased class do not generate runtime code; they are erased before code generation. This means that all `CanThrow` abilities are compile-time only artifacts; they do not have a runtime footprint.
6666

6767
Now, if the compiler sees a `throw Exc()` construct where `Exc` is a checked exception, it will check that there is an ability of type `CanThrow[Exc]` that can be summoned as a given. It's a compile-time error if that's not the case.
6868

@@ -188,7 +188,7 @@ enable more fluid explorations of code without regard for complete exception saf
188188

189189
To summarize, the extension for safer exception checking consists of the following elements:
190190

191-
- It adds to the standard library the class `CanThrow`, the type `canThrow`, and the `unsafeExceptions` object, as they were described above.
191+
- It adds to the standard library the class `scala.CanThrow`, the type `scala.canThrow`, and the `scala.unsafeExceptions` object, as they were described above.
192192
- It augments the type checking of `throw` by _demanding_ a `CanThrow` ability or the thrown exception.
193193
- It augments the type checking of `try` by _providing_ `CanThrow` abilities for every caught exception.
194194

0 commit comments

Comments
 (0)