Skip to content

Commit 9a551ab

Browse files
committed
Uses default catch
1 parent 75f3067 commit 9a551ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Result.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public enum Result<Success, Failure: Error> {
131131
/// do {
132132
/// let value = try integerResult.get()
133133
/// print("The value is \(value).")
134-
/// } catch let error {
134+
/// } catch {
135135
/// print("Error retrieving the value: \(error)")
136136
/// }
137137
/// // Prints "The value is 5."

0 commit comments

Comments
 (0)