mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Replace String.UnicodeScalarView's user conversion to String with a "string" property
Swift SVN r19691
This commit is contained in:
@@ -435,7 +435,7 @@ extension String : Collection {
|
||||
}
|
||||
|
||||
public subscript(i: Index) -> Character {
|
||||
return Character(unicodeScalars[i._base..<i._endBase])
|
||||
return Character(unicodeScalars[i._base..<i._endBase].string)
|
||||
}
|
||||
|
||||
public func generate() -> IndexingGenerator<String> {
|
||||
|
||||
Reference in New Issue
Block a user