Skip to content

Updates fixed-size suffix in 30 minute introduction #20895

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

Conversation

adregan
Copy link
Contributor

@adregan adregan commented Jan 10, 2015

Compiler gives the following warning:
warning: theusuffix on integers is deprecated; useusor one of the fixed-sized suffixes
And also the errror:
error: mismatched types: expectedu64, foundusize(expected u64, found usize)

Changing the suffix to u64 results in a successful cargo run outputting the desired Versions compared successfully!

Compiler gives the following warning:
`warning: the `u` suffix on integers is deprecated; use `us` or one of the fixed-sized suffixes`
And also the errror:
`error: mismatched types: expected `u64`, found `usize` (expected u64, found usize)`

Changing the suffix to `u64` results in a successful `cargo run` outputting the desired `Versions compared successfully!`
@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 @huonw (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.

@adregan
Copy link
Contributor Author

adregan commented Jan 10, 2015

This is a pull request to update the documentation on the rust-lang site.

@alexcrichton alexcrichton assigned steveklabnik and unassigned huonw Jan 11, 2015
@steveklabnik
Copy link
Member

Thank you! This also fixes #20967

bors added a commit that referenced this pull request Jan 12, 2015
Updates fixed-size suffix in 30 minute introduction

Reviewed-by: steveklabnik
@bors bors merged commit c871773 into rust-lang:master Jan 12, 2015
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.

5 participants