Clarify doc comment

significant_whitespace
Wilfred Hughes 2023-11-11 11:16:52 +07:00
parent 27b14ae4c7
commit 142144e484
1 changed files with 2 additions and 2 deletions

@ -11,8 +11,8 @@ use crate::parse::syntax::Syntax;
const TINY_TREE_THRESHOLD: u32 = 10;
const MOSTLY_UNCHANGED_MIN_COMMON_CHILDREN: usize = 4;
/// Set [`ChangeKind`] on nodes that are obviously unchanged, and return a
/// vec of pairs that need proper diffing.
/// Set [`ChangeKind`] on nodes that have exactly the same structure
/// on both sides, and return a vec of pairs that need proper diffing.
pub fn mark_unchanged<'a>(
lhs_nodes: &[&'a Syntax<'a>],
rhs_nodes: &[&'a Syntax<'a>],