Skip to content

Commit a5f8584

Browse files
authored
Name the ~= operator when introducing it (#306)
Fixes: swiftlang/swift-book#304
2 parents c6a1813 + 5b4a611 commit a5f8584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TSPL.docc/ReferenceManual/Patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ case labels.
411411

412412
The expression represented by the expression pattern
413413
is compared with the value of an input expression
414-
using the Swift standard library `~=` operator.
414+
using the pattern-matching operator (`~=`) from the Swift standard library.
415415
The matches succeeds
416416
if the `~=` operator returns `true`. By default, the `~=` operator compares
417417
two values of the same type using the `==` operator.

0 commit comments

Comments
 (0)