diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 16:26:31 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-06 20:28:17 -0800 |
commit | fbeded8ac543613b89af2ed7fd856e978493cde4 (patch) | |
tree | 64d761480a43f6935aad4e0d9171674cc9c0c868 /src/ansi.rs | |
parent | c579d079939b5d4ee3127579de732f037e612c28 (diff) | |
download | alacritty-fbeded8ac543613b89af2ed7fd856e978493cde4.tar.gz alacritty-fbeded8ac543613b89af2ed7fd856e978493cde4.zip |
Remove need for inclusive ranges
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 345e4e64..f24708bd 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -743,7 +743,7 @@ fn parse_color(attrs: &[i64], i: &mut usize) -> Option<Color> { *i += 4; - let range = 0...255; + let range = 0..256; if !range.contains_(r) || !range.contains_(g) || !range.contains_(b) { err_println!("Invalid RGB color spec: ({}, {}, {})", r, g, b); return None; |