summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2023-11-11 11:16:52 -0800
committerWilfred Hughes <me@wilfred.me.uk>2023-11-11 11:16:52 -0800
commit142144e4848ec1a26b5d4214abf34c3a14d72330 (patch)
treecdc4c81ccf27dcc77229cf1ddefe641776280b2a
parent27b14ae4c7fadc5d65ecfc6b41b8d7895f332e6f (diff)
Clarify doc comment
-rw-r--r--src/diff/unchanged.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff/unchanged.rs b/src/diff/unchanged.rs
index 1c39b1efc..2f4f7df15 100644
--- a/src/diff/unchanged.rs
+++ b/src/diff/unchanged.rs
@@ -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>],