mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: coding style: when colon specifies is-a relationship, we put
spaces on both sides of it Swift SVN r23935
This commit is contained in:
@@ -1115,7 +1115,7 @@ func _arrayAppendSequence<
|
||||
// Slice<Int> and Array<Int>.
|
||||
|
||||
/// Returns true if these arrays contain the same elements.
|
||||
public func ==<T: Equatable>(lhs: ${Self}<T>, rhs: ${Self}<T>) -> Bool {
|
||||
public func ==<T : Equatable>(lhs: ${Self}<T>, rhs: ${Self}<T>) -> Bool {
|
||||
let lhsCount = lhs.count
|
||||
if lhsCount != rhs.count {
|
||||
return false
|
||||
@@ -1142,7 +1142,7 @@ public func ==<T: Equatable>(lhs: ${Self}<T>, rhs: ${Self}<T>) -> Bool {
|
||||
}
|
||||
|
||||
/// Returns true if the arrays do not contain the same elements.
|
||||
public func !=<T: Equatable>(lhs: ${Self}<T>, rhs: ${Self}<T>) -> Bool {
|
||||
public func !=<T : Equatable>(lhs: ${Self}<T>, rhs: ${Self}<T>) -> Bool {
|
||||
return !(lhs == rhs)
|
||||
}
|
||||
%end
|
||||
|
||||
Reference in New Issue
Block a user