contains_comment
rustfmt_
nightly
1.92.0-nightly
(f04e3dfc8 2025-10-19)
In rustfmt_
nightly::
comment
rustfmt_nightly
::
comment
Function
contains_
comment
Copy item path
Source
pub(crate) fn contains_comment(text: &
str
) ->
bool
Expand description
Returns
true
if text contains any comment.