forked from bonsai/harakit
rpn(1): fixed exiting the program on EOF
This commit is contained in:
parent
4870f4679c
commit
942e284f93
25
src/rpn.rs
25
src/rpn.rs
@ -57,7 +57,7 @@ extern crate sysexits;
|
|||||||
use sysexits::EX_DATAERR;
|
use sysexits::EX_DATAERR;
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, PartialOrd, Debug)]
|
#[derive(Clone, Copy, 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,
|
||||||
Subtract,
|
Subtract,
|
||||||