File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ from Listing 4-1 using a `String` instead of a string literal:
219219There is a natural point at which we can return the memory our ` String ` needs
220220to the allocator: when ` s ` goes out of scope. When a variable goes out of
221221scope, Rust calls a special function for us. This function is called
222- [ ` drop ` ] [ drop ] <!-- ignore --> , and it’s where the author of ` String ` can put
222+ ` drop ` , and it’s where the author of ` String ` can put
223223the code to return the memory. Rust calls ` drop ` automatically at the closing
224224curly bracket.
225225
@@ -520,4 +520,3 @@ transferring ownership: references.
520520[ derivable-traits ] : appendix-03-derivable-traits.html
521521[ methods ] : ch05-03-method-syntax.html#methods
522522[ paths-module-tree ] : ch07-03-paths-for-referring-to-an-item-in-the-module-tree.html
523- [ drop ] : ../std/ops/trait.Drop.html#tymethod.drop
You can’t perform that action at this time.
0 commit comments