From 2faed3f9784df7f5faf56ed26f97a64b671b98ab Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Tue, 28 Feb 2017 01:58:27 +0900 Subject: [PATCH] improve argument name NOTE: adjust to flowtype definition https://github.com/vuejs/vue/blob/dev/src/core/config.js#L12 --- src/v2/api/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index db032f3e9c..fd59b54ae3 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -70,9 +70,9 @@ type: api - **Usage:** ``` js - Vue.config.errorHandler = function (err, vm, type) { + Vue.config.errorHandler = function (err, vm, info) { // handle error - // `type` is a Vue-specific error type, e.g. which lifecycle hook + // `info` is a Vue-specific error info, e.g. which lifecycle hook // the error was found in. Only available in 2.2.0+ } ```