浏览代码

chore: typo and grammar (#8568) [ci skip]

Co-authored-by: Han <phamvanhan@gmail.com>
Ha Pam 2 年之前
父节点
当前提交
341b5416b2
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      packages/compiler-core/src/parse.ts
  2. 1 1
      packages/compiler-ssr/src/index.ts
  3. 2 2
      packages/runtime-core/src/vnode.ts

+ 1 - 1
packages/compiler-core/src/parse.ts

@@ -1063,7 +1063,7 @@ function parseTextData(
   ) {
   ) {
     return rawText
     return rawText
   } else {
   } else {
-    // DATA or RCDATA containing "&"". Entity decoding required.
+    // DATA or RCDATA containing "&". Entity decoding is required.
     return context.options.decodeEntities(
     return context.options.decodeEntities(
       rawText,
       rawText,
       mode === TextModes.ATTRIBUTE_VALUE
       mode === TextModes.ATTRIBUTE_VALUE

+ 1 - 1
packages/compiler-ssr/src/index.ts

@@ -72,7 +72,7 @@ export function compile(
       // reusing core v-bind
       // reusing core v-bind
       bind: transformBind,
       bind: transformBind,
       on: transformOn,
       on: transformOn,
-      // model and show has dedicated SSR handling
+      // model and show have dedicated SSR handling
       model: ssrTransformModel,
       model: ssrTransformModel,
       show: ssrTransformShow,
       show: ssrTransformShow,
       // the following are ignored during SSR
       // the following are ignored during SSR

+ 2 - 2
packages/runtime-core/src/vnode.ts

@@ -586,8 +586,8 @@ function _createVNode(
   if (__DEV__ && shapeFlag & ShapeFlags.STATEFUL_COMPONENT && isProxy(type)) {
   if (__DEV__ && shapeFlag & ShapeFlags.STATEFUL_COMPONENT && isProxy(type)) {
     type = toRaw(type)
     type = toRaw(type)
     warn(
     warn(
-      `Vue received a Component which was made a reactive object. This can ` +
-        `lead to unnecessary performance overhead, and should be avoided by ` +
+      `Vue received a Component that was made a reactive object. This can ` +
+        `lead to unnecessary performance overhead and should be avoided by ` +
         `marking the component with \`markRaw\` or using \`shallowRef\` ` +
         `marking the component with \`markRaw\` or using \`shallowRef\` ` +
         `instead of \`ref\`.`,
         `instead of \`ref\`.`,
       `\nComponent that was made reactive: `,
       `\nComponent that was made reactive: `,