Format deleted content in red. Use this for removed files, lines, or content. # Arguments `text` - The text to format # Returns A styled object that displays in red when printed. # Example ```rust,ignore println!("{} {}", colors::deleted("-"), colors::deleted("removed line")); ```
(text: D)
| 295 | /// println!("{} {}", colors::deleted("-"), colors::deleted("removed line")); |
| 296 | /// ``` |
| 297 | pub fn deleted<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 298 | style(text).red() |
| 299 | } |
| 300 | |
| 301 | /// Format modified content in yellow. |
| 302 | /// |
no outgoing calls