-
Notifications
You must be signed in to change notification settings - Fork 13.3k
More intuitive explantion of strings formatting #35050
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
Conversation
//! | ||
//! ``` | ||
//! // Hello {arg 0 (x)} is {arg 1 (0.01) with precision specified inline (5)} | ||
//! // Hello {arg 0 ("x")} is {arg 1 (0.01) with precision specified inline (5)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did the quotes get added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case people mistake it for a variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So then the output on line 437 needs to be updated as well, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
er...but the output is Hello x is 0.01000
, as written on line 437.
Is it necessary to add extra quotes around the x
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gah, sorry. I mis-read the diff here; I thought these were inside of format strings. I was just wrong.
Thanks! Quick question about the quotes. |
@bors: r+ rollup |
📌 Commit 14a7f4d has been approved by |
Could this be merged now? |
…abnik More intuitive explantion of strings formatting
No description provided.