Skip to content

Commit 75f3067

Browse files
committed
Fixes example snippet in Result.swift
1 parent d0f8be1 commit 75f3067

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 error {
134+
/// } catch let error {
135135
/// print("Error retrieving the value: \(error)")
136136
/// }
137137
/// // Prints "The value is 5."

0 commit comments

Comments
 (0)