Skip to main content

diff_prompts

Function diff_prompts 

Source
pub fn diff_prompts(a: &str, b: &str) -> PromptDiff
Expand description

Compute a line-by-line diff of two strings using the Wagner-Fischer LCS algorithm.

Returns a PromptDiff describing lines added, removed, and unchanged.