Skip to content

Commit

Permalink
Rollup merge of rust-lang#22130 - steveklabnik:gh20172, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 10, 2015
2 parents 84214d1 + b42c559 commit f0348fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1255,9 +1255,7 @@ fn my_err(s: &str) -> ! {
We call such functions "diverging" because they never return a value to the
caller. Every control path in a diverging function must end with a `panic!()` or
a call to another diverging function on every control path. The `!` annotation
does *not* denote a type. Rather, the result type of a diverging function is a
special type called ⊥ ("bottom") that unifies with any type. Rust has no
syntax for ⊥.
does *not* denote a type.

It might be necessary to declare a diverging function because as mentioned
previously, the typechecker checks that every control path in a function ends
Expand Down

0 comments on commit f0348fc

Please sign in to comment.