Skip to content

Commit 0711006

Browse files
committed
Rollup merge of #23532 - steveklabnik:gh22002, r=alexcrichton
Fixes #22002
2 parents 83a95b0 + d081b24 commit 0711006

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/trpl/ffi.md

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ Foreign libraries often hand off ownership of resources to the calling code.
170170
When this occurs, we must use Rust's destructors to provide safety and guarantee
171171
the release of these resources (especially in the case of panic).
172172

173+
For more about destructors, see the [Drop trait](../std/ops/trait.Drop.html).
174+
173175
# Callbacks from C code to Rust functions
174176

175177
Some external libraries require the usage of callbacks to report back their

0 commit comments

Comments
 (0)