Skip to main content

one_line_doc

Function one_line_doc 

Source
pub fn one_line_doc(text: &str) -> String
Expand description

#2203: the source spelling of a one-line doc whose text is text: --- and the text, or a ---- marker when the text ends in a whitespace-preceded run of three dashes (which a --- marker would read as its closer). Empty text is spelled with a closer, --- ---, since a bare --- opens a block.