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

Use i32::MAX instead of i32::max_value() #110

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

faern
Copy link
Contributor

@faern faern commented Nov 20, 2020

Tiny change. But just using the newer, simpler and nicer constants.

@faern
Copy link
Contributor Author

faern commented Nov 20, 2020

Aaah. This library tries to stay compatible back before 1.43? Well, maybe we can tag the example in some way so it passes anyway. The vast majority of users will use a new enough compiler and showing them the best version of the code would be best IMO.

@dtolnay dtolnay merged commit 1969f03 into dtolnay:master Nov 20, 2020
@faern
Copy link
Contributor Author

faern commented Nov 20, 2020

Oh. I was just working on adding:

//!   # use std::i32; // Just for compatibility with Rust < 1.43

to the example. But if you are fine anyway then 👍

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.

None yet

2 participants