Format added content in green. Use this for newly added files, lines, or content. # Arguments `text` - The text to format # Returns A styled object that displays in green when printed. # Example ```rust,ignore println!("{} {}", colors::added("+"), colors::added("new line")); ```
(text: D)
| 274 | /// println!("{} {}", colors::added("+"), colors::added("new line")); |
| 275 | /// ``` |
| 276 | pub fn added<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 277 | style(text).green() |
| 278 | } |
| 279 | |
| 280 | /// Format deleted content in red. |
| 281 | /// |
no outgoing calls