Skip to main content
contains_comment
rustfmt_
nightly
1.100.0-nightly
(5a2be9f5f 2026-09-06)
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.