Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TSPL.docc/LanguageGuide/ErrorHandling.md
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ You can call a function that uses typed throws
from within a regular throwing function:

```swift
func someThrowingFunction() -> throws {
func someThrowingFunction() throws {
let ratings = [1, 2, 3, 2, 2, 1]
try summarize(ratings)
}
Expand All @@ -814,7 +814,7 @@ You could also write the error type explicitly as `throws(any Error)`;
the code below is equivalent to the code above:

```swift
func someThrowingFunction() -> throws(any Error) {
func someThrowingFunction() throws(any Error) {
let ratings = [1, 2, 3, 2, 2, 1]
try summarize(ratings)
}
Expand Down