summaryrefslogtreecommitdiff
path: root/js/errors.ts
diff options
context:
space:
mode:
authorTim Wang <tim.wangyao@gmail.com>2018-12-13 17:57:02 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-12-13 15:36:15 -0500
commit07369a6270473a2e4eb74d0c1936284d3b9558f3 (patch)
treea97f45e9dada2769f6e71847306a83c7815acca8 /js/errors.ts
parent79b4140a7770e57dcdded1c7742804d810d5d922 (diff)
Fix typo in errors.ts JSDoc
Diffstat (limited to 'js/errors.ts')
-rw-r--r--js/errors.ts2
1 files changed, 1 insertions, 1 deletions
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!");
* }
* }