mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #11191 from milseman/very_persistent
[stdlib] Fix bug in Substring's _persistentContent
This commit is contained in:
@@ -150,13 +150,6 @@ extension StringProtocol {
|
||||
}
|
||||
return String(String.CharacterView(self))
|
||||
}
|
||||
|
||||
internal var _persistentString : String {
|
||||
if _fastPath(self is _SwiftStringView) {
|
||||
return (self as! _SwiftStringView)._persistentContent
|
||||
}
|
||||
return String(String.CharacterView(self))
|
||||
}
|
||||
}
|
||||
|
||||
extension String : _SwiftStringView {
|
||||
|
||||
Reference in New Issue
Block a user