Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode 10.2.1 Swift 4.2 Getting following error #73

Open
Mahesh160393 opened this issue Jun 26, 2019 · 1 comment
Open

XCode 10.2.1 Swift 4.2 Getting following error #73

Mahesh160393 opened this issue Jun 26, 2019 · 1 comment

Comments

@Mahesh160393
Copy link

Mahesh160393 commented Jun 26, 2019

Subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent

@Mahesh160393 Mahesh160393 changed the title XCode 10.2.1 Swift 4.2 Subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent XCode 10.2.1 Swift 4.2 Getting following error Jun 26, 2019
@RahulShivade1342
Copy link

return String(self[(startIndex ..< endIndex)])
This should solve your problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants