[swift-users] See documentation comment for discussion

Maury Markowitz maury.markowitz at gmail.com
Fri Jun 17 14:44:01 CDT 2016


I've previously used myString[0...1] to get the first character of a string. I assume that is now myString[0..<2]? In any event, the error states:

'subscript' is unavailable: cannot subscript String with a CountableClosedRange<Int>, see the documentation comment for discussion

What documentation is this referring to? There's no right-click definition available, nothing in Navigator, and Google fails to turn up anything. I suspect its referring to the changelist or maybe github checkin notes?


More information about the swift-users mailing list