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

some work on the tutorials #6070

Closed
wants to merge 2 commits into from
Closed

some work on the tutorials #6070

wants to merge 2 commits into from

Conversation

thestinger
Copy link
Contributor

No description provided.

@@ -139,6 +139,73 @@ pub fn uncompress(src: &[u8]) -> Option<~[u8]> {
For reference, the examples used here are also available as an [library on
GitHub](https://github.com/thestinger/rust-snappy).

# Destructors

Foreign libraries often hand of ownership of resources to the calling code,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of -> off

@steveklabnik
Copy link
Member

Some minor stuff, but overall, awesome. :)

This removes the comparison to manual memory management examples,
because it requires too much existing knowledge. Implementing custom
destructors can be covered in the FFI tutorial, where `unsafe` is
already well explained.
@thestinger
Copy link
Contributor Author

@steveklabnik: thanks for the suggestions, I made some changes to the wording

@bors bors closed this Apr 27, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
Add new lint `unnecessary_wrap`

Fixes rust-lang#5969

changelog: New lint [`unnecessary_wraps`]
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 this pull request may close these issues.

3 participants