From: Carlos Rodrigues Date: Sat, 5 Oct 2019 14:35:19 +0000 (+0100) Subject: chore: fix comment typos (#94) X-Git-Tag: v3.0.0-alpha.0~601 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23ff6814184b906853b7ae2246478778ca2a993b;p=thirdparty%2Fvuejs%2Fcore.git chore: fix comment typos (#94) --- diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index e1befb9e10..4c468e30df 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -190,7 +190,7 @@ export function generate( // save Vue in a separate variable to avoid collision push(`const _Vue = Vue\n`) // in "with" mode, helpers are declared inside the with block to avoid - // has check cost, but hosits are lifted out of the function - we need + // has check cost, but hoists are lifted out of the function - we need // to provide the helper here. if (ast.hoists.length) { push(`const _${CREATE_VNODE} = Vue.createVNode\n`) diff --git a/packages/compiler-core/src/errors.ts b/packages/compiler-core/src/errors.ts index e64183dd39..64716f7ed1 100644 --- a/packages/compiler-core/src/errors.ts +++ b/packages/compiler-core/src/errors.ts @@ -135,7 +135,7 @@ export const errorMessages: { [code: number]: string } = { 'Interpolation end sign was not found.', [ErrorCodes.X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END]: 'End bracket for dynamic directive argument was not found. ' + - 'Note that dynamic directive argument connot contain spaces.', + 'Note that dynamic directive argument cannot contain spaces.', // transform errors [ErrorCodes.X_IF_NO_EXPRESSION]: `v-if/v-else-if is missing expression.`, diff --git a/packages/compiler-core/src/transforms/transformExpression.ts b/packages/compiler-core/src/transforms/transformExpression.ts index a88b28a9c2..fc6ca61d5d 100644 --- a/packages/compiler-core/src/transforms/transformExpression.ts +++ b/packages/compiler-core/src/transforms/transformExpression.ts @@ -113,7 +113,7 @@ export function processExpression( node.name = `_ctx.${node.name}` ids.push(node) } else if (!isStaticPropertyKey(node, parent)) { - // also generate sub-expressioms for other identifiers for better + // also generate sub-expressions for other identifiers for better // source map support. (except for property keys which are static) ids.push(node) } @@ -126,7 +126,7 @@ export function processExpression( enter(child, parent) { if ( child.type === 'Identifier' && - // do not record as scope variable if is a destrcuture key + // do not record as scope variable if is a destructured key !isStaticPropertyKey(child, parent) && // do not record if this is a default value // assignment of a destructured variable @@ -170,7 +170,7 @@ export function processExpression( } }) - // We break up the coumpound expression into an array of strings and sub + // We break up the compound expression into an array of strings and sub // expressions (for identifiers that have been prefixed). In codegen, if // an ExpressionNode has the `.children` property, it will be used instead of // `.content`. diff --git a/packages/compiler-core/src/transforms/vFor.ts b/packages/compiler-core/src/transforms/vFor.ts index 6deaa30667..70b170bfdf 100644 --- a/packages/compiler-core/src/transforms/vFor.ts +++ b/packages/compiler-core/src/transforms/vFor.ts @@ -135,7 +135,7 @@ export const transformFor = createStructuralDirectiveTransform( } } else if (isTemplate) { //