From 942c13ee26b180316f46921531c737fa8eb4197e Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sun, 9 Feb 2020 13:45:15 -0800 Subject: Silly error in CPS implementation --- src/parser.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index c88d751..ba58b72 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -190,7 +190,9 @@ pub fn parse_start_type(st: &str) -> Result { if st.len() < 4 { return Err(String::from( - "Expecting CPSn as alternatives failed to match, but variant string was too short.", + "Expecting CPSn as + alternatives failed to match, but variant string was too + short.", )); } else { if st[..3] == String::from("CPS") { @@ -198,7 +200,8 @@ pub fn parse_start_type(st: &str) -> Result { match num { Err(e) => { return Err(format!( - "Failed to parse number, {}. CPS must be followed by a positive integer < 256, e.g., CPS2.", + "Failed to parse number, {}. CPS must be + immediately followed by a positive integer < 256, e.g., CPS1.", e.to_string() )) } -- cgit v1.3.1