From 90caf4797d2021b57c6584b5405a87bf58036865 Mon Sep 17 00:00:00 2001 From: Ulrik Mikaelsson Date: Thu, 6 Dec 2018 20:18:31 +0100 Subject: [PATCH] aborting-on-panic.md: Typo in example config When trying to use the provided config, cargo warns: ``` warning: unused manifest key: profile.debug warning: use `[profile.dev]` to configure debug builds ``` --- src/rust-2018/error-handling-and-panics/aborting-on-panic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rust-2018/error-handling-and-panics/aborting-on-panic.md b/src/rust-2018/error-handling-and-panics/aborting-on-panic.md index d28138c4..303395e2 100644 --- a/src/rust-2018/error-handling-and-panics/aborting-on-panic.md +++ b/src/rust-2018/error-handling-and-panics/aborting-on-panic.md @@ -6,7 +6,7 @@ By default, Rust programs will unwind the stack when a `panic!` happens. If you' immediate abort instead, you can configure this in `Cargo.toml`: ```toml -[profile.debug] +[profile.dev] panic = "abort" [profile.release] @@ -15,4 +15,4 @@ panic = "abort" Why might you choose to do this? By removing support for unwinding, you'll get smaller binaries. You will lose the ability to catch panics. Which choice -is right for you depends on exactly what you're doing. \ No newline at end of file +is right for you depends on exactly what you're doing.