From 2d723b72d20f73e90985ad1198cc1a9fb042dbe3 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 8 Feb 2024 22:23:50 +0200 Subject: [PATCH] separate link target from normal content --- src/panic-implementation.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/panic-implementation.md b/src/panic-implementation.md index 20b192a3..f3587428 100644 --- a/src/panic-implementation.md +++ b/src/panic-implementation.md @@ -107,7 +107,9 @@ responsible for unwinding the stack, running any 'landing pads' associated with each frame (currently, running destructors), and transferring control to the `catch_unwind` frame. -Note that all panics either abort the process or get caught by some call to -`catch_unwind`. In particular, in std's [runtime -service](https://github.com/rust-lang/rust/blob/master/library/std/src/rt.rs), +Note that all panics either abort the process or get caught by some call to `catch_unwind`. +In particular, in std's [runtime service], the call to the user-provided `main` function is wrapped in `catch_unwind`. + + +[runtime service]: https://github.com/rust-lang/rust/blob/master/library/std/src/rt.rs