Skip to content

Commit c256454

Browse files
committed
auto merge of #16393 : SimonSapin/rust/patch-9, r=steveklabnik
2 parents 23c1f9b + 666d566 commit c256454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/doc/guide-ffi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ the `libc` module, and Rust links against `libc` and `libm` by default.
528528
# The "nullable pointer optimization"
529529
530530
Certain types are defined to not be `null`. This includes references (`&T`,
531-
`&mut T`), owning pointers (`~T`), and function pointers (`extern "abi"
532-
fn()`). When interfacing with C, pointers that might be null are often used.
531+
`&mut T`), boxes (`Box<T>`), and function pointers (`extern "abi" fn()`).
532+
When interfacing with C, pointers that might be null are often used.
533533
As a special case, a generic `enum` that contains exactly two variants, one of
534534
which contains no data and the other containing a single field, is eligible
535535
for the "nullable pointer optimization". When such an enum is instantiated

0 commit comments

Comments
 (0)