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

Add doc examples #32322

Merged
merged 1 commit into from
Mar 22, 2016
Merged

Add doc examples #32322

merged 1 commit into from
Mar 22, 2016

Conversation

GuillaumeGomez
Copy link
Member

//! # Examples
//!
//! ```
//! let x : u32 = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard rust style has no space before the :, can you modify this in all the examples?

Also, it's a bit strange to annotate the types here, is there a specific reason?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard rust style has no space before the :, can you modify this in all the examples?

Indeed, I'll update it in all my changes.

Also, it's a bit strange to annotate the types here, is there a specific reason?

I wanted to make the example as easy to understand as possible. Like this, there is no debate on the type and tkey can focus on what I want to show them.

@GuillaumeGomez
Copy link
Member Author

Updated.

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Mar 21, 2016

📌 Commit 3aac461 has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Mar 21, 2016
bors added a commit that referenced this pull request Mar 22, 2016
Rollup of 6 pull requests

- Successful merges: #32322, #32339, #32340, #32373, #32376, #32397
- Failed merges:
@bors bors merged commit 3aac461 into rust-lang:master Mar 22, 2016
@GuillaumeGomez GuillaumeGomez deleted the cmp_doc branch March 22, 2016 07:51
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.

3 participants