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
Xcode 9 beta 3 (current trunk is failing to build, so can't test it there at the moment)
md5: 04098965672b58e6d129b17146412d61
duplicates:
Issue Description:
If a Data slice is constructed using a partial range, it will fail to convert to a String properly, as the code below demonstrates:
import Foundation let data = "FooBar".data(using: .ascii)! let slice = data[3...] let string = String(data: slice, encoding: .ascii) print(string) // nil
Constructing the slice using 3..<6 instead of 3... causes it to work.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Xcode 9 beta 3
(current trunk is failing to build, so can't test it there at the moment)
Additional Detail from JIRA
md5: 04098965672b58e6d129b17146412d61
duplicates:
Issue Description:
If a Data slice is constructed using a partial range, it will fail to convert to a String properly, as the code below demonstrates:
Constructing the slice using 3..<6 instead of 3... causes it to work.
The text was updated successfully, but these errors were encountered: