Closed seishun closed 1 year ago
There are more cases of this confusion in other chapters. For example, in https://rust-book.cs.brown.edu/ch19-05-advanced-functions-and-closures.html#returning-closures:
In most cases where you might want to return a trait, you can instead use the concrete type that implements the trait as the return value of the function.
Fixed this in 780b7c9372a3581d08f4eeed814685b3dc753c2a.
main
branch to see if this has already been fixedURL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch19-04-advanced-types.html#the-never-type-that-never-returns
Description of the problem:
Later it says:
How can
!
be the value of something if it's a type that has no values?Suggested fix:
Replace "value" with "type" where appropriate.