fn violates_max_consecutive(buf: &[char], limit: usize) -> bool
Returns true if buf contains a run of identical characters longer than limit.
true
buf
limit