Function rustc_ast::util::comments::may_have_doc_links

source ยท
pub fn may_have_doc_links(s: &str) -> bool
Expand description

A fast conservative estimate on whether the string can contain documentation links. A pair of square brackets [] must exist in the string, but we only search for the opening bracket because brackets always go in pairs in practice.