Skip to main content

apply_doc_patch

Function apply_doc_patch 

Source
pub fn apply_doc_patch(text: &str, validated_patch: &ValidatedPatch) -> String
Expand description

Apply validated edits in reverse order to avoid index drift. Allocation: line buffer + replacement line buffers. Complexity: O(L + R + e).