Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation (The Book): FFI section introduces destructors without explanation #22002

Closed
RalfJung opened this issue Feb 6, 2015 · 1 comment · Fixed by #23532
Closed

Documentation (The Book): FFI section introduces destructors without explanation #22002

RalfJung opened this issue Feb 6, 2015 · 1 comment · Fixed by #23532

Comments

@RalfJung
Copy link
Member

RalfJung commented Feb 6, 2015

The "Destructors" section of the FFI chapter http://doc.rust-lang.org/book/ffi.html#destructors is, as far as I can tell, the first time in the book that destructors in Rust are mentioned. The short paragraph is not helpful in explaining what they are, and how they are used. When I read this section, I didn't even know Rust had destructors. Either a reference to some further explanation should be provided, or a short example given inline (mentioning at the very least the Drop trait).

@supr
Copy link
Contributor

supr commented Feb 19, 2015

While we are at it, can we also add some more information about complex types and how to handle unions.

Thanks

steveklabnik added a commit to steveklabnik/rust that referenced this issue Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants