mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 05:32:16 -04:00
Merge pull request #2059 from akhi3030/master
Minor: remove an extraneous `.`
This commit is contained in:
@@ -58,7 +58,7 @@ an instance of your type goes out of scope. We’re printing some text here to
|
||||
demonstrate when Rust will call `drop`.
|
||||
|
||||
In `main`, we create two instances of `CustomSmartPointer` and then print
|
||||
`CustomSmartPointers created.`. At the end of `main`, our instances of
|
||||
`CustomSmartPointers created`. At the end of `main`, our instances of
|
||||
`CustomSmartPointer` will go out of scope, and Rust will call the code we put
|
||||
in the `drop` method, printing our final message. Note that we didn’t need to
|
||||
call the `drop` method explicitly.
|
||||
|
||||
Reference in New Issue
Block a user