Skip to content

Commit b7a6236

Browse files
committed
Fixing wrong method documentation for SetAlgebra (see my rdar://22031133)
Spot the error: /// Return true iff `self.intersect(other).isEmpty`. @warn_unused_result func subtract(other: Self) -> Self … /// Return true iff `self.intersect(other).isEmpty`. @warn_unused_result func isDisjointWith(other: Self) -> Bool :wink:
1 parent 5fe7948 commit b7a6236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/SetAlgebra.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public protocol SetAlgebraType : Equatable, ArrayLiteralConvertible {
108108
mutating func exclusiveOrInPlace(other: Self)
109109

110110
//===--- Requirements with default implementations ----------------------===//
111-
/// Return true iff `self.intersect(other).isEmpty`.
111+
/// Returns the set of elements contained in `self` but not in `other`.
112112
@warn_unused_result
113113
func subtract(other: Self) -> Self
114114

0 commit comments

Comments
 (0)