From 07369a6270473a2e4eb74d0c1936284d3b9558f3 Mon Sep 17 00:00:00 2001 From: Tim Wang Date: Thu, 13 Dec 2018 17:57:02 +0800 Subject: Fix typo in errors.ts JSDoc --- js/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/errors.ts b/js/errors.ts index e4494520d..c91be23b6 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -9,7 +9,7 @@ export { ErrorKind } from "gen/msg_generated"; * try { * somethingThatMightThrow(); * } catch (e) { - * if (e instanceof DenoError && e.kind === DenoError.Overflow) { + * if (e instanceof DenoError && e.kind === ErrorKind.Overflow) { * console.error("Overflow error!"); * } * } -- cgit v1.2.3