Skip to main content

js_diff_text_at

Function js_diff_text_at 

Source
pub fn js_diff_text_at(before: &str, after: &str, index: usize) -> String
Expand description

The text of line index, or "" when out of range.

Out-of-range returns empty rather than panicking: a JS caller indexing past the end should see no text, not take the whole module down with a trap.