We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2eac3db + b3de1f3 commit 11de6d4Copy full SHA for 11de6d4
stdlib/public/core/Optional.swift
@@ -375,9 +375,9 @@ extension Optional: Equatable where Wrapped: Equatable {
375
/// `numberToMatch` constant is wrapped as an optional before comparing to the
376
/// optional `numberFromString`:
377
///
378
- /// let numberToFind: Int = 23
+ /// let numberToMatch: Int = 23
379
/// let numberFromString: Int? = Int("23") // Optional(23)
380
- /// if numberToFind == numberFromString {
+ /// if numberToMatch == numberFromString {
381
/// print("It's a match!")
382
/// }
383
/// // Prints "It's a match!"
0 commit comments