rpn(1): fixed Invalid error handling
This commit is contained in:
parent
a30152d783
commit
228a0111c7
16
src/rpn.rs
16
src/rpn.rs
@ -56,7 +56,7 @@ extern crate sysexits;
|
|||||||
|
|
||||||
use sysexits::EX_DATAERR;
|
use sysexits::EX_DATAERR;
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, PartialOrd, Debug)]
|
#[derive(Clone, PartialEq, PartialOrd, Debug)]
|
||||||
// enum CalcType is a type containing operations used in the calculator
|
// enum CalcType is a type containing operations used in the calculator
|
||||||
enum CalcType {
|
enum CalcType {
|
||||||
Add,
|
Add,
|
||||||