Explorar el Código

fix: function definition

HcySunYang hace 6 años
padre
commit
7d610f3f33
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {
 
     // 一些处理编译错误的代码