Skip to content

Commit 3ac2675

Browse files
committed
Add screenshots to doc string
1 parent faae52f commit 3ac2675

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Without `console_error_panic_hook` you just get something like *RuntimeError: Un
1717

1818
![Console without panic hook](without_panic_hook.png)
1919

20-
but with this panic hook installed you will see the panic message
20+
With this panic hook installed you will see the panic message
2121

2222
![Console with panic hook set up](with_panic_hook.png)
2323

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
//! will typically capture a stack trace and display it with the logged error
1414
//! message.
1515
//!
16+
//! Without `console_error_panic_hook` you just get something like *RuntimeError: Unreachable executed*
17+
//!
18+
//! ![Console without panic hook](without_panic_hook.png)
19+
//!
20+
//! With this panic hook installed you will see the panic message
21+
//!
22+
//! ![Console with panic hook set up](with_panic_hook.png)
23+
//!
1624
//! ## Usage
1725
//!
1826
//! There are two ways to install this panic hook.

0 commit comments

Comments
 (0)