mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Adding the StringProtocol
This commit is contained in:
committed by
Maxim Moiseev
parent
bba33f345f
commit
bfb1824f44
@@ -10,7 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
extension String : RangeReplaceableCollection, BidirectionalCollection {
|
||||
extension String : StringProtocol {
|
||||
/// The index type for subscripting a string.
|
||||
public typealias Index = CharacterView.Index
|
||||
|
||||
|
||||
Reference in New Issue
Block a user