chore: fix typos (#541)

This commit is contained in:
Cr 2019-12-13 18:49:01 +08:00 committed by Eduardo San Martin Morote
parent 6a50d125f6
commit 6797e35703
3 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,7 @@ function parseChildren(
} }
// Whitespace management for more efficient output // Whitespace management for more efficient output
// (same as v2 whitespance: 'condense') // (same as v2 whitespace: 'condense')
let removedWhitespace = false let removedWhitespace = false
if ( if (
mode !== TextModes.RAWTEXT && mode !== TextModes.RAWTEXT &&

View File

@ -49,7 +49,7 @@ export const transformElement: NodeTransform = (node, context) => {
// handled by transformSlotOutlet // handled by transformSlotOutlet
node.tagType === ElementTypes.SLOT || node.tagType === ElementTypes.SLOT ||
// <template v-if/v-for> should have already been replaced // <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)) (node.tagType === ElementTypes.TEMPLATE && node.props.some(isVSlot))
) { ) {
return return

View File

@ -691,7 +691,7 @@ export function createRenderer<
} else { } else {
// keyed / unkeyed, or manual fragments. // keyed / unkeyed, or manual fragments.
// for keyed & unkeyed, since they are compiler generated from v-for, // 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. // have dynamicChildren.
patchChildren( patchChildren(
n1, n1,