Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #326 from amanusk/fix-inclusive-range
Browse files Browse the repository at this point in the history
tendermint-rs: Fix error for not using inclusive range
  • Loading branch information
tarcieri committed Jul 30, 2019
2 parents 29cb2ed + 3b3e59d commit 1e48619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint-rs/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 1e48619

Please sign in to comment.