Format modified content in yellow. Use this for changed files or content that has been modified. # Arguments `text` - The text to format # Returns A styled object that displays in yellow when printed. # Example ```rust,ignore println!("{} {}", colors::modified("M"), colors::modified("src/main.rs")); ```
(text: D)
| 316 | /// println!("{} {}", colors::modified("M"), colors::modified("src/main.rs")); |
| 317 | /// ``` |
| 318 | pub fn modified<D: std::fmt::Display>(text: D) -> StyledObject<D> { |
| 319 | style(text).yellow() |
| 320 | } |
| 321 | |
| 322 | /// Format untracked content in red (same as deleted for visibility). |
| 323 | /// |
no outgoing calls