Skip to content
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

More intuitive explantion of strings formatting #35050

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

knight42
Copy link
Contributor

No description provided.

@alexcrichton
Copy link
Member

r? @steveklabnik

//!
//! ```
//! // 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)}
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

@steveklabnik
Copy link
Member

Thanks! Quick question about the quotes.

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Jul 27, 2016

📌 Commit 14a7f4d has been approved by steveklabnik

@knight42
Copy link
Contributor Author

Could this be merged now?

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jul 29, 2016
…abnik

More intuitive explantion of strings formatting
bors added a commit that referenced this pull request Jul 29, 2016
Rollup of 7 pull requests

- Successful merges: #34258, #34894, #35050, #35062, #35066, #35072, #35087
- Failed merges:
@bors bors merged commit 14a7f4d into rust-lang:master Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants