pub fn closest_msg<'a, T>(
choice: &str,
iter: impl Iterator<Item = T>,
key: impl Fn(&T) -> &'a str,
) -> String
Expand description
Version of closest
that returns a common “suggestion” that can be tacked
onto the end of an error message.