diff --git a/docs/zh/renderer-diff.md b/docs/zh/renderer-diff.md index 969cc65a..bfd8c56b 100644 --- a/docs/zh/renderer-diff.md +++ b/docs/zh/renderer-diff.md @@ -767,7 +767,7 @@ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) { patch(oldEndVNode, newEndVNode, container) // 更新索引,指向下一个位置 oldEndVNode = prevChildren[--oldEndIdx] - newEndVNode = newEndVNode[--newEndIdx] + newEndVNode = nextChildren[--newEndIdx] } else if (oldStartVNode.key === newEndVNode.key) { // 步骤三:oldStartVNode 和 newEndVNode 比对