Skip to content

Commit

Permalink
Fixing wrong method documentation for SetAlgebra (see my rdar://22031…
Browse files Browse the repository at this point in the history
…133)

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:
  • Loading branch information
regexident committed Dec 3, 2015
1 parent 5fe7948 commit b7a6236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/public/core/SetAlgebra.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b7a6236

Please sign in to comment.