Skip to main content

expected_message

Function expected_message 

Source
fn expected_message(literals: &[String]) -> Option<String>
Expand description

Formats the given expected literals into a single “expected” message:

expected `]`
expected one of: `]`, `}`

Returns None if the provided literal list is empty.