about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-03-19 18:11:35 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-03-19 18:11:35 -0400
commitd081b241ff79c276e6839ffb94447ce6dd3cfab3 (patch)
treebafc7142382950d96448310f2afd5d618ed2880c
parent08dd30d9eb685f29b82faae66b5fdb9fc4762a91 (diff)
downloadrust-d081b241ff79c276e6839ffb94447ce6dd3cfab3.tar.gz
rust-d081b241ff79c276e6839ffb94447ce6dd3cfab3.zip
Reference Drop in FFI chapter
Fixes #22002
-rw-r--r--src/doc/trpl/ffi.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/trpl/ffi.md b/src/doc/trpl/ffi.md
index 20b0ffc1b28..018f35337f3 100644
--- a/src/doc/trpl/ffi.md
+++ b/src/doc/trpl/ffi.md
@@ -170,6 +170,8 @@ Foreign libraries often hand off ownership of resources to the calling code.
 When this occurs, we must use Rust's destructors to provide safety and guarantee
 the release of these resources (especially in the case of panic).
 
+For more about destructors, see the [Drop trait](../std/ops/trait.Drop.html).
+
 # Callbacks from C code to Rust functions
 
 Some external libraries require the usage of callbacks to report back their