Skip to content

Commit

Permalink
auto merge of #16393 : SimonSapin/rust/patch-9, r=steveklabnik
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Aug 30, 2014
2 parents 23c1f9b + 666d566 commit c256454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide-ffi.md
Expand Up @@ -528,8 +528,8 @@ the `libc` module, and Rust links against `libc` and `libm` by default.
# The "nullable pointer optimization"
Certain types are defined to not be `null`. This includes references (`&T`,
`&mut T`), owning pointers (`~T`), and function pointers (`extern "abi"
fn()`). When interfacing with C, pointers that might be null are often used.
`&mut T`), boxes (`Box<T>`), and function pointers (`extern "abi" fn()`).
When interfacing with C, pointers that might be null are often used.
As a special case, a generic `enum` that contains exactly two variants, one of
which contains no data and the other containing a single field, is eligible
for the "nullable pointer optimization". When such an enum is instantiated
Expand Down

0 comments on commit c256454

Please sign in to comment.