Skip to content

Commit

Permalink
Termination has stabilized! Fixes #3116.
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed May 31, 2022
1 parent 7265a01 commit a6142f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nostarch/chapter09.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,9 @@ integers when they exit: programs that exit successfully return the integer
returns integers from executables to be compatible with this convention.
The `main` function may return any types that implement the
`std::process::Termination` trait. As of this writing, the `Termination` trait
is an unstable feature only available in Nightly Rust, so you can’t yet
implement it for your own types in Stable Rust, but you might be able to
someday!
`std::process::Termination` trait, which contains a function `report` that
returns an `ExitCode` Consult the standard library documentation for more
information on implementing the `Termination` trait for your own types.
Now that we’ve discussed the details of calling `panic!` or returning `Result`,
let’s return to the topic of how to decide which is appropriate to use in which
Expand Down

0 comments on commit a6142f8

Please sign in to comment.