From 04da35a8f1d7245b2159223d71a5b1f6cf05e33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E9=94=90?= <1244388148@qq.com> Date: Mon, 5 Jul 2021 17:54:48 +0800 Subject: [PATCH] Update renderer-diff.md --- docs/zh/renderer-diff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 比对