Update README.md

pull/127/head
Dhghomon 4 years ago committed by GitHub
parent 44d54ac0a6
commit 5b76f7c3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11111,7 +11111,7 @@ fn math(input: &str) -> i32 {
if !input.chars().all(|character| OKAY_CHARACTERS.contains(character)) ||
!input.chars().take(2).any(|character| character.is_numeric())
{
panic!("Please only input numbers, +-, or spaces");
panic!("Please only input numbers, +-, or spaces.");
}
let input = input.trim_end_matches(|x| "+- ".contains(x)).chars().filter(|x| *x != ' ').collect::<String>(); // Remove + and - at the end, and all spaces

Loading…
Cancel
Save