File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,10 @@ internal extension Array {
185
185
186
186
// If the index is out of bounds it's assumed relative
187
187
func relativeIndex ( index: Int ) -> Int {
188
- var _index = ( index % count)
188
+ var _index = ( index % self . count)
189
189
190
190
if _index < 0 {
191
- _index = count + _index
191
+ _index = self . count + _index
192
192
}
193
193
194
194
return _index
Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ public extension String {
91
91
:returns: Array of substrings
92
92
*/
93
93
func explode ( separator: Character ) -> [ String ] {
94
- return split ( self , { ( element: Character ) -> Bool in
94
+ return split ( self ) { ( element: Character ) -> Bool in
95
95
return element == separator
96
- } )
96
+ }
97
97
}
98
98
99
99
/**
You can’t perform that action at this time.
0 commit comments