Skip to content

Commit ced2c34

Browse files
authored
docs(zh): fix SyntaxError + = => += (#6147)[skip ci]
lines[renderIndex] + = `\n router,` => lines[renderIndex] += `\n router,`
1 parent 49052f4 commit ced2c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh/dev-guide/plugin-dev.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ module.exports.hooks = (api) => {
268268
const lines = contentMain.split(/\r?\n/g)
269269
270270
const renderIndex = lines.findIndex(line => line.match(/render/))
271-
lines[renderIndex] + = `\n router,`
271+
lines[renderIndex] += `\n router,`
272272
})
273273
}
274274
```

0 commit comments

Comments
 (0)