Find the position of a single non-matching character between two strings

With @digital_carver / @DNF hints of why zip makes trouble… so that would work and not allocate:

findfirst( s1[i] != s2[i] for i in 1:min(length(s1),length(s2)) )
1 Like