Document when the return type of a block expression implicitly becomes !
#1033
Labels
C-bug
Incorrect statements, terminology, or rendering issues
!
#1033
The reference currently states
However, the type of this block appears to be
!
:whereas the type of this block is
i32
So it looks like the presence of an expression of type
!
changes the default type of the block from()
to!
.As a side note, the doucmentation could also make clearer that "omitting the final expression" essentially means terminating the block with a semicolon.
The text was updated successfully, but these errors were encountered: