Skip to content

Commit

Permalink
Fix error for not using inclusive range
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Jul 30, 2019
1 parent 92785d2 commit c985471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl FromStr for Timeout {

let units = match s.chars().nth(s.len() - 2) {
Some('m') => "ms",
Some('0'...'9') => "s",
Some('0'..='9') => "s",
_ => Err(err!(ErrorKind::Parse, "invalid units"))?,
};

Expand Down

0 comments on commit c985471

Please sign in to comment.