Skip to content

Commit b757c51

Browse files
committed
improve wording
fixes #1046 (comment)
1 parent 2052653 commit b757c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/v12.0.0/exception.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ try {
420420
}
421421
```
422422

423-
### Throw a value that is not an error
423+
### Throw a value that is not an JS Error
424424

425-
For some reason, if you need to throw something that is not a JS error, use `JsExn.throw`:
425+
If you want to throw any value that is not a valid JS Error, use `JsExn.throw`:
426426

427427
<CodeTab labels={["ReScript", "JS Output"]}>
428428

0 commit comments

Comments
 (0)