Skip to main content

read_diff_text

Function read_diff_text 

Source
pub fn read_diff_text(
    reader: impl Read,
    label: &str,
    limit: u64,
) -> Result<String, DiffStandDown>
Expand description

Read a diff from reader, up to limit bytes, as UTF-8 text.

ยงErrors

Returns the unreadable, oversize or not-utf8 stand-down.