]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: comments grammar (#4913) [ci skip]
authoryuchao <yuchaoyj@gmail.com>
Mon, 15 Nov 2021 00:41:45 +0000 (11:41 +1100)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 00:41:45 +0000 (19:41 -0500)
packages/runtime-core/src/renderer.ts

index 198a4c8f4ff056f0a12daf9a146ae9f8ee02e38a..7cf8b49521fe1d83642e140e43f955026887b6e1 100644 (file)
@@ -2463,8 +2463,8 @@ export function invokeVNodeHook(
  *
  * #2080
  * Inside keyed `template` fragment static children, if a fragment is moved,
- * the children will always moved so that need inherit el form previous nodes
- * to ensure correct moved position.
+ * the children will always be moved. Therefore, in order to ensure correct move
+ * position, el should be inherited from previous nodes.
  */
 export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
   const ch1 = n1.children