Created
March 26, 2018 12:38
-
-
Save CodeSandwich/51c862066c4ab3f4b449b8e7bd690299 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn my_fn() { | |
let my_box = Box::new(1234); // acquire | |
println!("{}", my_box); // use | |
// delete my_box, | |
// which releases memory | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment