Skip to content

Commit 0b3ccde

Browse files
authored
Update abort_unwind.md
1 parent 51a361d commit 0b3ccde

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/error/abort_unwind.md

-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ The previous section illustrates the error handling mechanism `panic`. The `cfg
66
Building on the prior lemonade example, we explicitly use the panic strategy to execise different lines of code.
77

88
```rust,editable,ignore,mdbook-runnable
9-
#![feature(cfg_panic)]
109
1110
fn drink(beverage: &str) {
1211
// You shouldn't drink too much sugary beverages.
@@ -26,7 +25,6 @@ fn main() {
2625
Here is another example focusing on rewriting `drink()` and explicitly use the `unwind` keyword.
2726

2827
```rust,editable,ignore
29-
#![feature(cfg_panic)]
3028
3129
#[cfg(panic = "unwind")]
3230
fn ah(){ println!("Spit it out!!!!");}

0 commit comments

Comments
 (0)