From 6aa89ed58312b91b143ae67c763dc92bfbb47ebc Mon Sep 17 00:00:00 2001 From: KamWithK <51506271+KamWithK@users.noreply.github.com> Date: Fri, 2 Aug 2019 23:38:20 +1000 Subject: [PATCH] fixed iterator parsing the line ranges --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 833395c..90da6b2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -40,7 +40,7 @@ fn parse_line_range(s: &str) -> Result, ParseIntError> { if range.len() == 1 { result.push(range[0]) } else { - for i in range[0]..range[1] { + for i in range[0]..=range[1] { result.push(i); } }