diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-01-17 10:47:29 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-01-17 10:47:29 -0500 |
| commit | b520c2f28002db0e4120797d823380914871bac4 (patch) | |
| tree | f15ce785142da06b8c69e934dc630f2a1aae3d7f | |
| parent | 483ae32189a1af673b6fb6d2c99b949564651d18 (diff) | |
| download | rust-b520c2f28002db0e4120797d823380914871bac4.tar.gz rust-b520c2f28002db0e4120797d823380914871bac4.zip | |
Adjust comments in test case
| -rw-r--r-- | src/test/run-pass/cleanup-rvalue-scopes.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/run-pass/cleanup-rvalue-scopes.rs b/src/test/run-pass/cleanup-rvalue-scopes.rs index 8a2dd374891..7ed59ec74b4 100644 --- a/src/test/run-pass/cleanup-rvalue-scopes.rs +++ b/src/test/run-pass/cleanup-rvalue-scopes.rs @@ -67,8 +67,7 @@ macro_rules! end_of_block( println!("end_of_block({})", stringify!({let $pat = $expr;})); { - // Destructor here does not run until exit from the block, - // because value is assigned to. + // Destructor here does not run until exit from the block. let $pat = $expr; check_flags(0); } @@ -83,8 +82,8 @@ macro_rules! end_of_stmt( println!("end_of_stmt({})", stringify!($expr)); { - // Destructor here does not run until exit from the block, - // because value is assigned to. + // Destructor here run after `let` statement + // terminates. let $pat = $expr; check_flags(1); } |
