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
With a single argument, printf! goes back to just rendering the %? representation of a value, even if it's a string.
printf!
%?
compare these two invocations and their output:
printf!("test\n") "test\n" printf!("%s\n", "test") test
The text was updated successfully, but these errors were encountered:
The cause for this is that fmt!(a) == fmt!("%?", a) (at least that's what it's transformed to). The %? representation makes the string printing weird.
fmt!(a) == fmt!("%?", a)
Now that we have a generic printf macro though I agree that this should definitely be addressed.
printf
Sorry, something went wrong.
Visiting for triage. Unfortunate, but not a milestone blocker.
Closing due to being old, printf has been removed and print does not have this behavior.
print
No branches or pull requests
With a single argument,
printf!
goes back to just rendering the%?
representation of a value, even if it's a string.compare these two invocations and their output:
The text was updated successfully, but these errors were encountered: