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

Change the first line of the println macro doc #28654

Merged
merged 1 commit into from
Sep 26, 2015
Merged

Change the first line of the println macro doc #28654

merged 1 commit into from
Sep 26, 2015

Conversation

ogham
Copy link
Contributor

@ogham ogham commented Sep 25, 2015

This was discovered by maggyero on #rust.

In the documentation for the macros in libstd, the first lines for print! and println! were exactly the same, with no mention of how one of them also emits a newline:

screen shot 2015-09-25 at 12 11 52

This commit makes the first lines of those two macros different.

This makes the first lines of the print! and println! macros
different. Previously, they would show up exactly the same in the
documentation for the macros in libstd [1], with nothing about how
one of them also prints a newline.

[1]: https://doc.rust-lang.org/stable/std/#macros
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@sanxiyn
Copy link
Member

sanxiyn commented Sep 25, 2015

@bors r+

@bors
Copy link
Contributor

bors commented Sep 25, 2015

📌 Commit c6e1b12 has been approved by sanxiyn

@steveklabnik
Copy link
Member

@bors: rollup

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Sep 25, 2015
This was discovered by maggyero on #rust.

In the [documentation for the macros in libstd](https://doc.rust-lang.org/stable/std/#macros), the first lines for `print!` and `println!` were exactly the same, with no mention of how one of them also emits a newline:

<img width="622" alt="screen shot 2015-09-25 at 12 11 52" src="https://cloud.githubusercontent.com/assets/503760/10099409/465d509a-6381-11e5-9eb9-766f21a08c50.png">

This commit makes the first lines of those two macros different.
bors added a commit that referenced this pull request Sep 25, 2015
@bors bors merged commit c6e1b12 into rust-lang:master Sep 26, 2015
@ogham ogham deleted the patch-2 branch September 26, 2015 10:16
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.

6 participants