Skip to content

Commit

Permalink
Rollup merge of #23532 - steveklabnik:gh22002, r=alexcrichton
Browse files Browse the repository at this point in the history
 Fixes #22002
  • Loading branch information
Manishearth committed Mar 20, 2015
2 parents 83a95b0 + d081b24 commit 0711006
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doc/trpl/ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0711006

Please sign in to comment.