mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
improve stdlib hygiene a bit.
Swift SVN r28392
This commit is contained in:
@@ -61,7 +61,7 @@ extension String {
|
||||
public func successor() -> Index {
|
||||
var scratch = _ScratchGenerator(_core, _position)
|
||||
var decoder = UTF16()
|
||||
let (result, length) = decoder._decodeOne(&scratch)
|
||||
let (_, length) = decoder._decodeOne(&scratch)
|
||||
return Index(_position + length, _core)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user