Skip to content

Commit

Permalink
drop: avoid confusing names
Browse files Browse the repository at this point in the history
The Droppables are already named with letters, so hopefully referencing the nesting order of blocks instead of giving them names is clearer.
  • Loading branch information
fw-immunant committed Feb 19, 2025
1 parent 44a7974 commit 65e94ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory-management/drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fn main() {
{
let c = Droppable { name: "c" };
let d = Droppable { name: "d" };
println!("Exiting block B");
println!("Exiting innermost block");
}
println!("Exiting block A");
println!("Exiting next block");
}
drop(a);
println!("Exiting main");
Expand Down

0 comments on commit 65e94ca

Please sign in to comment.