Skip to content

Commit fb810bd

Browse files
authored
improve argument name (vuejs#787)
NOTE: adjust to flowtype definition https://github.com/vuejs/vue/blob/dev/src/core/config.js#L12
1 parent 07dbb9b commit fb810bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ type: api
7070
- **Usage:**
7171

7272
``` js
73-
Vue.config.errorHandler = function (err, vm, type) {
73+
Vue.config.errorHandler = function (err, vm, info) {
7474
// handle error
75-
// `type` is a Vue-specific error type, e.g. which lifecycle hook
75+
// `info` is a Vue-specific error info, e.g. which lifecycle hook
7676
// the error was found in. Only available in 2.2.0+
7777
}
7878
```

0 commit comments

Comments
 (0)