Przeglądaj źródła

fix: function definition

HcySunYang 6 lat temu
rodzic
commit
7d610f3f33
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
 
     // 一些处理编译错误的代码