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
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
md5: d2dac59268fe35e55144f9eaa1453c67
Issue Description:
Description
Formatted string initializer doesn't handle indexed argument correctly if there's only one placeholder in format string.
Playground Code
import Foundation let stringOne = String(format: "%2$@", "World", "Hello") print(stringOne) let stringTwo = String(format: "%2$@ %1$@", "World", "Hello", "!") print(stringTwo)
Actual Output
World Hello World
Expected Output
Hello Hello World
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Additional Detail from JIRA
md5: d2dac59268fe35e55144f9eaa1453c67
Issue Description:
Description
Formatted string initializer doesn't handle indexed argument correctly if there's only one placeholder in format string.
Playground Code
Actual Output
Expected Output
The text was updated successfully, but these errors were encountered: