Skip to content

Commit

Permalink
drop: avoid confusing names (#2648)
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 authored Feb 20, 2025
1 parent 44a7974 commit 4f8b090
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 4f8b090

Please # to comment.