fix exclusive range error · rust-lang/rust@4c5a36e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit 4c5a36e

fix exclusive range error

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -166,7 +166,7 @@ impl From for ExitCode {
166 166 fn from(code: u8) -> Self {
167 167 match code {
168 168 0 => Self::SUCCESS,
169 -1..255 => Self::FAILURE,
169 +1..=255 => Self::FAILURE,
170 170 }
171 171 }
172 172 }