Skip to main content

warning

Function warning 

Source
pub fn warning(msg: &str) -> String
Expand description

Format a warning message with yellow warning sign.

Returns colored output if stdout is a TTY, plain text otherwise.