Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Throwing Functions and Throwing Methods #262

Open
tadbyt opened this issue Jan 30, 2024 · 0 comments
Open

Correct Throwing Functions and Throwing Methods #262

tadbyt opened this issue Jan 30, 2024 · 0 comments

Comments

@tadbyt
Copy link
Contributor

tadbyt commented Jan 30, 2024

Location

https://docs.swift.org/swift-book/documentation/the-swift-programming-language/declarations#Throwing-Functions-and-Methods

Description

The second paragraph misstates what is required:

Calls to a throwing function or method must be wrapped in a try or try! expression (that is, in the scope of a try or try! operator).

Correction

Reword the paragraph to:

Calls to a throwing function or method must be wrapped in an expression with a try operator (that is, in the scope of a try, try?, or try! operator).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant