From ccd39b70ed07a14a4c82c7841212d8f421dfa319 Mon Sep 17 00:00:00 2001 From: bjornregnell Date: Tue, 15 Feb 2022 16:56:49 +0100 Subject: [PATCH] fix typo in docs example capability checking --- docs/_docs/reference/experimental/cc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_docs/reference/experimental/cc.md b/docs/_docs/reference/experimental/cc.md index 40434c518587..592d410a4502 100644 --- a/docs/_docs/reference/experimental/cc.md +++ b/docs/_docs/reference/experimental/cc.md @@ -500,7 +500,7 @@ def escaped(xs: Double*): (() => Double) throws LimitExceeded = val crasher = escaped(1, 2, 10e+11) crasher() ``` -This code needs to be rejected since otherwise the call to `later()` would cause +This code needs to be rejected since otherwise the call to `crasher()` would cause an unhandled `LimitExceeded` exception to be thrown. Under `-Ycc`, the code is indeed rejected