fix(check): change method of check for an empty array
This commit is contained in:
parent
dbf7dab513
commit
7e30117c84
|
@ -9,7 +9,7 @@ const ASCII_ZERO_CHAR_POSITION: u8 = 48;
|
|||
pub fn processing_input(input: &String) -> String {
|
||||
input
|
||||
.split_ascii_whitespace()
|
||||
.filter(|&x| x != "")
|
||||
.filter(|&x| x.is_empty())
|
||||
.fold(String::new(), |c: String, n: &str| c + n)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue