Skip to content

Commit bbc9be6

Browse files
Merge pull request swiftlang#26 from airspeedswift/substring-slice
[utf8] Give StringProtocol.SubSequence default of Substring to suppress warning
2 parents 1c77b8c + 0a82881 commit bbc9be6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/StringProtocol.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public protocol StringProtocol
3434
associatedtype UnicodeScalarView : BidirectionalCollection
3535
where UnicodeScalarView.Element == Unicode.Scalar,
3636
UnicodeScalarView.Index == Index
37+
38+
associatedtype SubSequence = Substring
3739

3840
var utf8: UTF8View { get }
3941
var utf16: UTF16View { get }

0 commit comments

Comments
 (0)