Skip to content

Commit fe446b4

Browse files
committed
Fix typos
1 parent 04774ba commit fe446b4

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
@@ -192,7 +192,7 @@ To summarize, the extension for safer exception checking consists of the followi
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

195-
That's all. It's quite noteable that one can do exception checking in this way without any special additions to the type system. We just need regular givens and context functions. Any runtime overhead is eliminated using `erased`.
195+
That's all. It's quite remarkable that one can do exception checking in this way without any special additions to the type system. We just need regular givens and context functions. Any runtime overhead is eliminated using `erased`.
196196

197197
## Caveats
198198

@@ -237,5 +237,5 @@ And it would have many other applications besides: Exceptions are a special case
237237

238238
But even without these additional mechanisms, exception checking is already useful as it is. It gives a clear path forward to make code that uses exceptions safer, better documented, and easier to refactor. The only loophole arises for scoped abilities - here we have to verify manually that these abilities do not escape. Specifically, a `try` always has to be placed in the same computation stage as the throws that it enables.
239239

240-
Put another way: If the status quo is 0% static checking since 100% is too painful, then an alternative that gives you to 95% static checking with great ergonomics looks like a win. And we might still get to 100% in the future.
240+
Put another way: If the status quo is 0% static checking since 100% is too painful, then an alternative that gives you 95% static checking with great ergonomics looks like a win. And we might still get to 100% in the future.
241241

0 commit comments

Comments
 (0)