File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
TSPL.docc/ReferenceManual Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1459,7 +1459,7 @@ and a synchronous method can satisfy a protocol requirement for an asynchronous
14591459
14601460### Functions that Never Return
14611461
1462- Swift defines a ` Never ` type,
1462+ Swift defines a [ ` Never ` ] [ ] type,
14631463which indicates that a function or method doesn't return to its caller.
14641464Functions and methods with the ` Never ` return type are called * nonreturning* .
14651465Nonreturning functions and methods either cause an irrecoverable error
@@ -1469,6 +1469,8 @@ code that would otherwise run immediately after the call is never executed.
14691469Throwing and rethrowing functions can transfer program control
14701470to an appropriate ` catch ` block, even when they're nonreturning.
14711471
1472+ [ `Never` ] : https://developer.apple.com/documentation/swift/never
1473+
14721474A nonreturning function or method can be called to conclude the ` else ` clause
14731475of a guard statement,
14741476as discussed in < doc:Statements#Guard-Statement > .
You can’t perform that action at this time.
0 commit comments