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:
Dmitri Hrybenko
2014-12-15 06:55:30 +00:00
parent c0b5b94cfc
commit 397d2fb8c3
6 changed files with 47 additions and 49 deletions

View File

@@ -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