diff options
| author | tslil clingman <> | 2020-02-09 13:45:15 -0800 |
|---|---|---|
| committer | tslil clingman <> | 2020-02-09 13:45:15 -0800 |
| commit | 942c13ee26b180316f46921531c737fa8eb4197e (patch) | |
| tree | 84f5ee55f7d923f1a213776c6015f69b1fa9c90e /src/parser.rs | |
| parent | 84898338d0875c258a4325d517dd7b7f9d0f83e1 (diff) | |
Silly error in CPS implementation
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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<StartType, String> { 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<StartType, String> { 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() )) } |
