Skip to main content

get_horizontal_trim

Function get_horizontal_trim 

Source
fn get_horizontal_trim(lines: &[&str], kind: CommentShape) -> Option<String>
Expand description

Copied verbatim from rustc’s beautify_doc_string, modulo CommentKind/CommentShape renaming and returning String rather than interning to Symbol.