Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fe70111

Browse files
committed
Merge pull request pNre#84 from JakobR/Swift-1.2
Fix compiler errors in second Xcode 6.3 beta (6D532l).
2 parents 4105cf9 + 91ff0f6 commit fe70111

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎ExSwift/Array.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ internal extension Array {
185185

186186
// If the index is out of bounds it's assumed relative
187187
func relativeIndex (index: Int) -> Int {
188-
var _index = (index % count)
188+
var _index = (index % self.count)
189189

190190
if _index < 0 {
191-
_index = count + _index
191+
_index = self.count + _index
192192
}
193193

194194
return _index

‎ExSwift/String.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public extension String {
9191
:returns: Array of substrings
9292
*/
9393
func explode (separator: Character) -> [String] {
94-
return split(self, { (element: Character) -> Bool in
94+
return split(self) { (element: Character) -> Bool in
9595
return element == separator
96-
})
96+
}
9797
}
9898

9999
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /