We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compilation error using advance: let replace = pattern[advance(pattern.startIndex, 1)...advance(pattern.endIndex, -2)]
advance
let replace = pattern[advance(pattern.startIndex, 1)...advance(pattern.endIndex, -2)]
Error is: 'advance' is unavailable: call the 'advancedBy(n)' method on the index
'advance' is unavailable: call the 'advancedBy(n)' method on the index
The text was updated successfully, but these errors were encountered:
Replace above line by the one below: let replace = pattern[pattern.startIndex.advancedBy(1)...pattern.endIndex.advancedBy(-2)]
let replace = pattern[pattern.startIndex.advancedBy(1)...pattern.endIndex.advancedBy(-2)]
Sorry, something went wrong.
Fixed. Thanks.
No branches or pull requests
Compilation error using
advance
:let replace = pattern[advance(pattern.startIndex, 1)...advance(pattern.endIndex, -2)]
Error is:
'advance' is unavailable: call the 'advancedBy(n)' method on the index
The text was updated successfully, but these errors were encountered: