about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-08-09 23:01:14 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-08-25 20:14:36 +0100
commit666d566eec4a41083f9ff85b04a2f3456989b722 (patch)
treecaced3740f4322536c47b3d63744fb550a4c24d0
parente8ad6a888ea0b03455c0c181cf644e7bca261b14 (diff)
downloadrust-666d566eec4a41083f9ff85b04a2f3456989b722.tar.gz
rust-666d566eec4a41083f9ff85b04a2f3456989b722.zip
Replace mention of ~T by Box<T> in the FFI guide.
-rw-r--r--src/doc/guide-ffi.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-ffi.md b/src/doc/guide-ffi.md
index 600a9019e6b..f0402c17e3f 100644
--- a/src/doc/guide-ffi.md
+++ b/src/doc/guide-ffi.md
@@ -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