Skip to content

Commit 15de161

Browse files
authored
Merge pull request #1056 from tlyu/fn-param-drop-order
fix comment in function parameter drop scope example
2 parents b38ea03 + ed5ba7c commit 15de161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/destructors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ dropped after any bindings introduced in that parameter's pattern.
110110
# println!("drop({})", self.0);
111111
# }
112112
# }
113-
// Drops the second parameter, then `y`, then the first parameter, then `x`
113+
// Drops `y`, then the second parameter, then `x`, then the first parameter
114114
fn patterns_in_parameters(
115115
(x, _): (PrintOnDrop, PrintOnDrop),
116116
(_, y): (PrintOnDrop, PrintOnDrop),

0 commit comments

Comments
 (0)