mirror of
https://github.com/rust-lang/book.git
synced 2026-09-14 01:41:20 -04:00
Slighty better rewording
This commit is contained in:
@@ -164,9 +164,9 @@ another `Result<T, E>`, which means we can use any methods that work on
|
||||
### The Never Type, `!`, that Never Returns
|
||||
|
||||
Rust has a special type named `!`. In type theory lingo, it's called the
|
||||
*bottom type*, but we prefer the name *never*. The name describes what it does:
|
||||
it stands in the place of the return type when a function will never return.
|
||||
For example:
|
||||
*bottom type*, but we prefer to call it the *never type*. The name describes
|
||||
what it does: it stands in the place of the return type when a function will
|
||||
never return. For example:
|
||||
|
||||
```rust,ignore
|
||||
fn bar() -> ! {
|
||||
|
||||
Reference in New Issue
Block a user