rustfmt_nightly::comment

Function contains_comment

Source
pub(crate) fn contains_comment(text: &str) -> bool
Expand description

Returns true if text contains any comment.