Skip to content

Commit e855d0d

Browse files
authored
Merge pull request #869 from Quick/fix-doc-comments
Fix doc comments of satisfyAllOf and satisfyAnyOf
2 parents a154403 + 11c0727 commit e855d0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Nimble/Matchers/SatisfyAllOf.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public func satisfyAllOf<T, U>(_ matchers: U...) -> Predicate<T>
1313
}
1414

1515
/// A Nimble matcher that succeeds when the actual value matches with all of the matchers
16-
/// provided in the variable list of matchers.
16+
/// provided in the array of matchers.
1717
public func satisfyAllOf<T>(_ predicates: [Predicate<T>]) -> Predicate<T> {
18-
return Predicate.define { actualExpression in
18+
return Predicate.define { actualExpression in
1919
var postfixMessages = [String]()
2020
var matches = true
2121
for predicate in predicates {

Sources/Nimble/Matchers/SatisfyAnyOf.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public func satisfyAnyOf<T, U>(_ matchers: U...) -> Predicate<T>
1313
}
1414

1515
/// A Nimble matcher that succeeds when the actual value matches with any of the matchers
16-
/// provided in the variable list of matchers.
16+
/// provided in the array of matchers.
1717
public func satisfyAnyOf<T>(_ predicates: [Predicate<T>]) -> Predicate<T> {
1818
return Predicate.define { actualExpression in
1919
var postfixMessages = [String]()
@@ -43,7 +43,7 @@ public func satisfyAnyOf<T>(_ predicates: [Predicate<T>]) -> Predicate<T> {
4343
}
4444

4545
public func || <T>(left: Predicate<T>, right: Predicate<T>) -> Predicate<T> {
46-
return satisfyAnyOf(left, right)
46+
return satisfyAnyOf(left, right)
4747
}
4848

4949
@available(*, deprecated, message: "Use Predicate instead")

0 commit comments

Comments
 (0)