rpn(1): fixed exiting the program on EOF

This commit is contained in:
Emma Tebibyte 2024-02-01 00:57:51 -07:00
parent 4870f4679c
commit 942e284f93
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -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,