Skip to main content

first_comment

Function first_comment 

Source
pub fn first_comment(head: &str) -> Option<String>
Expand description

The description a script gives itself: its first comment line.

A #! shebang on the first line is skipped; then the first line that starts with #, with the # characters and surrounding spaces removed. A comment line with nothing on it (# alone, or a ruled #####) is a separator rather than a description and is skipped.