Subscript 'subscript(_:)' requires that 'String.Index' conform to 'RangeExpression' happened only when i use static value from Struct

后端 未结 0 714
心在旅途
心在旅途 2021-01-26 09:59

I have ridiculous error using strings

var myString = "A"

print(myString[myString.startIndex] == "-")    // false

this code w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题