]> git.lizzy.rs Git - rust.git/commitdiff
Replace mention of ~T by Box<T> in the FFI guide.
authorSimon Sapin <simon.sapin@exyr.org>
Sat, 9 Aug 2014 22:01:14 +0000 (23:01 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 25 Aug 2014 19:14:36 +0000 (20:14 +0100)
src/doc/guide-ffi.md

index 600a9019e6b944478780f0c632e1a3e74297ab69..f0402c17e3f361fbda953043e2e28712f25c16ac 100644 (file)
@@ -527,8 +527,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