فهرست منبع

chore(typo): fix typo in comments (#9995)

Sai 7 سال پیش
والد
کامیت
1137e415c9
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/compiler/parser/html-parser.js
  2. 1 1
      src/core/instance/render-helpers/bind-dynamic-keys.js

+ 1 - 1
src/compiler/parser/html-parser.js

@@ -22,7 +22,7 @@ const startTagOpen = new RegExp(`^<${qnameCapture}`)
 const startTagClose = /^\s*(\/?)>/
 const endTag = new RegExp(`^<\\/${qnameCapture}[^>]*>`)
 const doctype = /^<!DOCTYPE [^>]+>/i
-// #7298: escape - to avoid being pased as HTML comment when inlined in page
+// #7298: escape - to avoid being passed as HTML comment when inlined in page
 const comment = /^<!\--/
 const conditionalComment = /^<!\[/
 

+ 1 - 1
src/core/instance/render-helpers/bind-dynamic-keys.js

@@ -17,7 +17,7 @@ export function bindDynamicKeys (baseObj: Object, values: Array<any>): Object {
     if (typeof key === 'string' && key) {
       baseObj[values[i]] = values[i + 1]
     } else if (process.env.NODE_ENV !== 'production' && key !== '' && key !== null) {
-      // null is a speical value for explicitly removing a binding
+      // null is a special value for explicitly removing a binding
       warn(
         `Invalid value for dynamic directive argument (expected string or null): ${key}`,
         this