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.
static func ==
1 parent c1534d5 commit b3de1f3Copy full SHA for b3de1f3
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