From d081b241ff79c276e6839ffb94447ce6dd3cfab3 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 19 Mar 2015 18:11:35 -0400 Subject: [PATCH] Reference Drop in FFI chapter Fixes #22002 --- src/doc/trpl/ffi.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/trpl/ffi.md b/src/doc/trpl/ffi.md index 20b0ffc1b2862..018f35337f3c0 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