Skip to main content

format_diff_terminal

Function format_diff_terminal 

Source
pub fn format_diff_terminal(diff: &ContentDiff) -> String
Expand description

Render a ContentDiff as a colour terminal string.

Added lines are prefixed with + in green, removed with - in red, modified show both old (-) and new (+) lines. Context lines are dimmed.