Function rustc_errors::display_list_with_comma_and

source ·
pub fn display_list_with_comma_and<T: Display>(v: &[T]) -> String
Expand description

Grammatical tool for displaying messages to end users in a nice form.

Take a list [“a”, “b”, “c”] and output a display friendly version “a, b and c”