fn different_char_count(string_a: &str, string_b: &str) -> usize {
    let mut result = 0;
    let mut b_chars = string_b.chars();
    for c in string_a.chars() {
        let b_char = match b_chars.next() {
            Some(c_b) => c_b,
            None => '\0',
        };
        if b_char == '\0' {
            result += 1;
            continue;
        }
        if c != b_char {
            result += 1;
        }
    }

    for _ in b_chars {
        result += 1;
    }
    result
}
/// Returns the count of different characters between the two strings
///
/// Runs a position by position difference between the chars
///
/// If the 2 strings have different lengths, the difference in lengths
/// is automatically added to the "difference count"
///
/// # Example
/// ```
/// assert_eq!(different_char_count("qqq", "qqq"), 0);
/// assert_eq!(different_char_count("qqq", "qwq"), 1);
/// assert_eq!(different_char_count("qqq", "qqqw"), 1);
/// assert_eq!(different_char_count("q1qe", "qqq"), 2);
/// ```
Returns the count of different characters between the two strings
Runs a position by position difference between the chars

If the 2 strings have different lengths, the difference in lengths
is automatically added to the "difference count"
Returns the count of different characters between the two strings Runs a position by position difference between the chars If the 2 strings have different lengths the difference in lengths is automatically added to the " difference count "
fn different_char_count(string_a: &str, string_b: &str) -> usize {
    let mut result = 0;
    let mut b_chars = string_b.chars();
    for c in string_a.chars() {
        let b_char = match b_chars.next() {
            Some(c_b) => c_b,
            None => '\0',
        };
        if b_char == '\0' {
            result += 1;
            continue;
        }
        if c != b_char {
            result += 1;
        }
    }
    for _ in b_chars {
        result += 1;
    }
    result
}
fn different_char_count ( string_a : & str , string_b : & str ) -> usize { let mut result = 0 ; let mut b_chars = string_b . chars ( ) ; for c in string_a . chars ( ) { let b_char = match b_chars . next ( ) { Some ( c_b ) => c_b , None => '\0' , } ; if b_char == '\0' { result += 1 ; continue ; } if c != b_char { result += 1 ; } } for _ in b_chars { result += 1 ; } result }
Returns the count of different characters between the two strings
Runs a position by position difference between the chars
Returns the count of different characters between the two strings Runs a position by position difference between the chars
string_a
&str
string_b
&str
string_a
&str
string_b
&str
example
None