mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-25 00:50:26 +02:00
drop: avoid confusing names (#2648)
The Droppables are already named with letters, so hopefully referencing the nesting order of blocks instead of giving them names is clearer.
This commit is contained in:
parent
44a79741ff
commit
4f8b09009a
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user