Skip to main content

determine_majority_case

Function determine_majority_case 

Source
pub fn determine_majority_case(tokens: &[(String, Span)]) -> &'static str
Expand description

Determine the majority case from a list of token texts. Returns "upper" or "lower". Mixed-case tokens are skipped (always violations). On tie, defaults to "upper".