]> git.lizzy.rs Git - rust.git/commitdiff
Reference Drop in FFI chapter
authorSteve Klabnik <steve@steveklabnik.com>
Thu, 19 Mar 2015 22:11:35 +0000 (18:11 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Thu, 19 Mar 2015 22:11:35 +0000 (18:11 -0400)
Fixes #22002

src/doc/trpl/ffi.md

index 20b0ffc1b286200c751e294ad684787f3c6ad49e..018f35337f3c0b376f86c23b571e93f6ebc2603a 100644 (file)
@@ -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