mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Switch range operators ".." and "...".
- 1..3 now means 1,2 - 1...3 now means 1,2,3 Implements <rdar://problem/16839891> Swift SVN r18066
This commit is contained in:
@@ -72,11 +72,11 @@ struct UnicodeScalarView : Sliceable, Sequence {
|
||||
}
|
||||
|
||||
func __slice__(start: IndexType, end: IndexType) -> UnicodeScalarView {
|
||||
return UnicodeScalarView(_base[start._position...end._position])
|
||||
return UnicodeScalarView(_base[start._position..end._position])
|
||||
}
|
||||
|
||||
subscript(r: Range<IndexType>) -> UnicodeScalarView {
|
||||
return UnicodeScalarView(_base[r.startIndex._position...r.endIndex._position])
|
||||
return UnicodeScalarView(_base[r.startIndex._position..r.endIndex._position])
|
||||
}
|
||||
|
||||
struct GeneratorType : Generator {
|
||||
|
||||
Reference in New Issue
Block a user