Skip to content

Commit 23fdde7

Browse files
authored
Merge pull request #31499 from valeriyvan/FixExampleSnippetResult.swift
Fixes example snippet in Result.swift
2 parents 7660c1e + 9a551ab commit 23fdde7

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

0 commit comments

Comments
 (0)