Skip to content

Commit 1d59cbb

Browse files
author
Han
committed
chore: typos
1 parent 1f83020 commit 1d59cbb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/compiler-core/src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ function parseTextData(
10631063
) {
10641064
return rawText
10651065
} else {
1066-
// DATA or RCDATA containing "&"". Entity decoding required.
1066+
// DATA or RCDATA containing "&". Entity decoding is required.
10671067
return context.options.decodeEntities(
10681068
rawText,
10691069
mode === TextModes.ATTRIBUTE_VALUE

packages/compiler-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export function injectProp(
380380
propsWithInjection = createObjectExpression([prop])
381381
} else if (props.type === NodeTypes.JS_CALL_EXPRESSION) {
382382
// merged props... add ours
383-
// only inject key to object literal if it's the first argument so that
383+
// only inject key to object literally if it's the first argument so that
384384
// if doesn't override user provided keys
385385
const first = props.arguments[0] as string | JSChildNode
386386
if (!isString(first) && first.type === NodeTypes.JS_OBJECT_EXPRESSION) {

packages/compiler-ssr/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function compile(
7272
// reusing core v-bind
7373
bind: transformBind,
7474
on: transformOn,
75-
// model and show has dedicated SSR handling
75+
// model and show have dedicated SSR handling
7676
model: ssrTransformModel,
7777
show: ssrTransformShow,
7878
// the following are ignored during SSR

packages/runtime-core/src/vnode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ function _createVNode(
585585
if (__DEV__ && shapeFlag & ShapeFlags.STATEFUL_COMPONENT && isProxy(type)) {
586586
type = toRaw(type)
587587
warn(
588-
`Vue received a Component which was made a reactive object. This can ` +
589-
`lead to unnecessary performance overhead, and should be avoided by ` +
588+
`Vue received a Component that was made a reactive object. This can ` +
589+
`lead to unnecessary performance overhead and should be avoided by ` +
590590
`marking the component with \`markRaw\` or using \`shallowRef\` ` +
591591
`instead of \`ref\`.`,
592592
`\nComponent that was made reactive: `,

0 commit comments

Comments
 (0)