Skip to content

Commit f172528

Browse files
committed
Link to the API reference for Never (#96)
2 parents ece51d1 + 00673bd commit f172528

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,
14631463
which indicates that a function or method doesn't return to its caller.
14641464
Functions and methods with the `Never` return type are called *nonreturning*.
14651465
Nonreturning functions and methods either cause an irrecoverable error
@@ -1469,6 +1469,8 @@ code that would otherwise run immediately after the call is never executed.
14691469
Throwing and rethrowing functions can transfer program control
14701470
to an appropriate `catch` block, even when they're nonreturning.
14711471

1472+
[`Never`]: https://developer.apple.com/documentation/swift/never
1473+
14721474
A nonreturning function or method can be called to conclude the `else` clause
14731475
of a guard statement,
14741476
as discussed in <doc:Statements#Guard-Statement>.

0 commit comments

Comments
 (0)