From 07369a6270473a2e4eb74d0c1936284d3b9558f3 Mon Sep 17 00:00:00 2001 From: Tim Wang Date: Thu, 13 Dec 2018 17:57:02 +0800 Subject: [PATCH] Fix typo in errors.ts JSDoc --- js/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/errors.ts b/js/errors.ts index e4494520df..c91be23b6d 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!"); * } * }