Skip to main content

diff_summary

Function diff_summary 

Source
pub fn diff_summary(old: &str, new: &str) -> String
Expand description

Produce a human-readable one-line summary of the change.

Currently reports the number of lines added/removed relative to the old body. Future work: full semantic or DOM diffing.