merge stable version #2
|
@ -24,7 +24,7 @@ pub fn hamming(raw_input: String, mode: HammingMode) -> Result<String> {
|
||||||
let prepared_input: String = processing_input(&raw_input);
|
let prepared_input: String = processing_input(&raw_input);
|
||||||
|
|
||||||
let (first_condition, second_condition): (bool, bool) =
|
let (first_condition, second_condition): (bool, bool) =
|
||||||
check_correct_binary_code(&raw_input, &prepared_input, length_of_code);
|
check_correct_binary_code(&prepared_input, length_of_code);
|
||||||
|
|
||||||
if raw_input.is_empty() {
|
if raw_input.is_empty() {
|
||||||
Err("Введите код.".into())
|
Err("Введите код.".into())
|
||||||
|
|
Loading…
Reference in New Issue