Function print_diff_github_style
Source pub fn print_diff_github_style(text1: &str, text2: &str)
Expand description
Prints a GitHub-style diff between two text slices to stdout.
This function highlights additions in green and removals in red.
§Arguments
text1 - The original text.
text2 - The modified text.
§Examples
use assert_text::print_diff_github_style;
print_diff_github_style("hello world", "Hello orld");