Skip to main content

ends_a_question

Function ends_a_question 

Source
fn ends_a_question(line: &str) -> bool
Expand description

Whether any question mark in line ends a sentence: only closing formatting (**, _, quotes, brackets, a code span’s backtick) stands between it and the end of the line or the next space. Not a ? inside code (`?`, `result?`), a URL’s query, or a?.b.