Skip to content

Commit

Permalink
Merge pull request #1056 from tlyu/fn-param-drop-order
Browse files Browse the repository at this point in the history
fix comment in function parameter drop scope example
  • Loading branch information
ehuss authored Jul 5, 2021
2 parents b38ea03 + ed5ba7c commit 15de161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ dropped after any bindings introduced in that parameter's pattern.
# println!("drop({})", self.0);
# }
# }
// Drops the second parameter, then `y`, then the first parameter, then `x`
// Drops `y`, then the second parameter, then `x`, then the first parameter
fn patterns_in_parameters(
(x, _): (PrintOnDrop, PrintOnDrop),
(_, y): (PrintOnDrop, PrintOnDrop),
Expand Down

0 comments on commit 15de161

Please sign in to comment.