Jelajahi Sumber

fix: function definition

HcySunYang 6 tahun lalu
induk
melakukan
7d610f3f33
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      docs/art/80vue-compiler-start.md

+ 1 - 1
docs/art/80vue-compiler-start.md

@@ -886,7 +886,7 @@ export function otherCompiler (template: string, options: CompilerOptions) {
 
 ```js
 function createCompilerCreator (baseCompile) {
-  return customCompiler function (template: string, options: CompilerOptions) {
+  return function customCompiler (template: string, options: CompilerOptions) {
 
     // 一些处理编译错误的代码