stdlib: protocol extensions: de-underscore indices

Swift SVN r28245
This commit is contained in:
Dmitri Hrybenko
2015-05-07 00:30:35 +00:00
parent f76ca6243e
commit e253881b02
30 changed files with 119 additions and 135 deletions

View File

@@ -118,7 +118,7 @@ public func split<S: Sliceable, R:BooleanType>(
= allowEmptySlices ? .Some(elements.startIndex) : .None
var splits = 0
for j in indices(elements) {
for j in elements.indices {
if isSeparator(elements[j]) {
if startIndex != nil {
var i = startIndex!