Skip to content

replace deprecated uint references with u32 in trpl/looping.md #20956

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

Merged
merged 1 commit into from
Jan 12, 2015
Merged

replace deprecated uint references with u32 in trpl/looping.md #20956

merged 1 commit into from
Jan 12, 2015

Conversation

angst7
Copy link
Contributor

@angst7 angst7 commented Jan 11, 2015

Replaced uint references with u32 to prevent compiler warnings.

Replaced uint references with u32 to prevent compiler warnings.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (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 CONTRIBUTING.md for more information.

@Gankra Gankra assigned steveklabnik and unassigned brson Jan 11, 2015
@@ -54,7 +54,7 @@ The other kind of looping construct in Rust is the `while` loop. It looks like
this:

```{rust}
let mut x = 5u; // mut x: uint
let mut x = 5u32; // mut x: u32
Copy link
Contributor

Choose a reason for hiding this comment

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

Strictly speaking, you can put no suffix and get the same code (well, it would use i32), but I'm not sure if that effects the meaning steve was going for.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If no suffix is preferred in this case, I'd be happy to make that change instead, and create a new PR. I was mostly interested in clearing compiler warnings due to the deprecated uint type.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can take this for now as a strict improvement, actually.

Copy link
Member

Choose a reason for hiding this comment

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

I generally want to have no type where we can.

bors added a commit that referenced this pull request Jan 12, 2015
replace deprecated uint references with u32 in trpl/looping.md

Reviewed-by: Gankro
@bors bors merged commit c989bd4 into rust-lang:master Jan 12, 2015
@angst7 angst7 deleted the docfixes1 branch January 12, 2015 02:41
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