Skip to content

Conversation

yue2388253
Copy link
Contributor

Compile the previous program results in serveral following warnings:

warning: ... range patterns are deprecated
--> src/n0008_string_to_integer_atoi.rs:77:24
|
77 | '0'...'9' => {
| ^^^ help: use ..= for an inclusive range
|
= note: #[warn(ellipsis_inclusive_range_patterns)] on by default

See this link for more details

Compile the previous program results in serveral following warnings:
> warning: `...` range patterns are deprecated
>   --> src/n0008_string_to_integer_atoi.rs:77:24
>    |
> 77 |                     '0'...'9' => {
>    |                        ^^^ help: use `..=` for an inclusive range
>    |
>    = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default

See this link (rust-lang/book#2072) for more details
@aylei aylei merged commit da3cad9 into aylei:master Sep 6, 2019
@aylei
Copy link
Owner

aylei commented Sep 6, 2019

Thanks @yue2388253 !

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.

2 participants