From f49af31dc89f465dbd631ff5bf4790762e08cc1e Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 8 Feb 2024 22:21:45 +0200 Subject: [PATCH 1/2] fix sentence --- src/panic-implementation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panic-implementation.md b/src/panic-implementation.md index c2fe6ebd7..20b192a3b 100644 --- a/src/panic-implementation.md +++ b/src/panic-implementation.md @@ -108,6 +108,6 @@ 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, std's [runtime -service](https://github.com/rust-lang/rust/blob/master/library/std/src/rt.rs) -wrap the call to the user-provided `main` function is wrapped in `catch_unwind`. +`catch_unwind`. In particular, in std's [runtime +service](https://github.com/rust-lang/rust/blob/master/library/std/src/rt.rs), +the call to the user-provided `main` function is wrapped in `catch_unwind`. From c0da9f02cbda904d158996dd279bb1e43523aa30 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 8 Feb 2024 22:23:50 +0200 Subject: [PATCH 2/2] 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 20b192a3b..f35874286 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