Skip to content

Commit 29cadb2

Browse files
committed
List 'throws' variant spellings
1 parent 7e76588 commit 29cadb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,10 @@ Calls to a throwing function or method must be wrapped in a `try` or `try!` expr
14691469
(that is, in the scope of a `try` or `try!` operator).
14701470

14711471
<!-- XXX
1472+
spellings:
1473+
- throws is the same as throws(any Error)
1474+
- throws(Never) is the same as not-throwing
1475+
14721476
Rule for inferring the thrown error type
14731477
Xref to the guide <doc:ErrorHandling#Specifying-a-Concrete-Error-Type>
14741478
-->

0 commit comments

Comments
 (0)