]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typos (#541)
authorCr <631807682@qq.com>
Fri, 13 Dec 2019 10:49:01 +0000 (18:49 +0800)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Fri, 13 Dec 2019 10:49:01 +0000 (11:49 +0100)
packages/compiler-core/src/parse.ts
packages/compiler-core/src/transforms/transformElement.ts
packages/runtime-core/src/renderer.ts

index a26923e77c29a58823b2a2adb406f71a83e08400..e7de25bcfc511ff66c02432f4bf274544e7cee3c 100644 (file)
@@ -191,7 +191,7 @@ function parseChildren(
   }
 
   // Whitespace management for more efficient output
-  // (same as v2 whitespance: 'condense')
+  // (same as v2 whitespace: 'condense')
   let removedWhitespace = false
   if (
     mode !== TextModes.RAWTEXT &&
index 2d09bf5681b7e6b3ce5f0d50da352a593a63e614..c13e9e4ce09abb04101eec56cf89749f0d95191d 100644 (file)
@@ -49,7 +49,7 @@ export const transformElement: NodeTransform = (node, context) => {
     // handled by transformSlotOutlet
     node.tagType === ElementTypes.SLOT ||
     // <template v-if/v-for> should have already been replaced
-    // <templte v-slot> is handled by buildSlots
+    // <template v-slot> is handled by buildSlots
     (node.tagType === ElementTypes.TEMPLATE && node.props.some(isVSlot))
   ) {
     return
index b3dbc52d09832c73328c6d1af4b80c1b9b8da974..f4f81d54d5da1b9b9753c22ac5d8372ca86fb051 100644 (file)
@@ -691,7 +691,7 @@ export function createRenderer<
       } else {
         // keyed / unkeyed, or manual fragments.
         // for keyed & unkeyed, since they are compiler generated from v-for,
-        // each child is guarunteed to be a block so the fragment will never
+        // each child is guaranteed to be a block so the fragment will never
         // have dynamicChildren.
         patchChildren(
           n1,