From b7a623604060a6723a25a598befe5a622e563597 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Thu, 3 Dec 2015 21:44:26 +0100 Subject: [PATCH] Fixing wrong method documentation for SetAlgebra (see my rdar://22031133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: --- stdlib/public/core/SetAlgebra.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/public/core/SetAlgebra.swift b/stdlib/public/core/SetAlgebra.swift index df09db9e4e348..2119215e3d832 100644 --- a/stdlib/public/core/SetAlgebra.swift +++ b/stdlib/public/core/SetAlgebra.swift @@ -108,7 +108,7 @@ public protocol SetAlgebraType : Equatable, ArrayLiteralConvertible { mutating func exclusiveOrInPlace(other: Self) //===--- Requirements with default implementations ----------------------===// - /// Return true iff `self.intersect(other).isEmpty`. + /// Returns the set of elements contained in `self` but not in `other`. @warn_unused_result func subtract(other: Self) -> Self