Skip to content

Commit 6a43cd2

Browse files
Update panic.md
1 parent 6c4089e commit 6a43cd2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/panic.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ is a hard crash type of panic, not a regular type
55
of error.
66

77
The `control.panic` implementation is written like this in the runtime.
8-
TypeScript: ``` ts
8+
TypeScript:
9+
``` ts
910
export function panic(code: number) {
1011
U.userError("PANIC! Code " + code) // throw a panic code to the problems pane
1112
}
13+
```
1214

1315
C++:
1416
``` cpp

0 commit comments

Comments
 (0)