Skip to content

Commit 5e99c8c

Browse files
authored
Merge pull request #125 from rawler/patch-1
aborting-on-panic.md: Typo in example config
2 parents e18e6de + 90caf47 commit 5e99c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust-2018/error-handling-and-panics/aborting-on-panic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ By default, Rust programs will unwind the stack when a `panic!` happens. If you'
66
immediate abort instead, you can configure this in `Cargo.toml`:
77

88
```toml
9-
[profile.debug]
9+
[profile.dev]
1010
panic = "abort"
1111

1212
[profile.release]
@@ -15,4 +15,4 @@ panic = "abort"
1515

1616
Why might you choose to do this? By removing support for unwinding, you'll
1717
get smaller binaries. You will lose the ability to catch panics. Which choice
18-
is right for you depends on exactly what you're doing.
18+
is right for you depends on exactly what you're doing.

0 commit comments

Comments
 (0)