From 440d7ff2087067dd1b47a8023ec7e240e2243eee Mon Sep 17 00:00:00 2001 From: qwer252 Date: Fri, 6 Jun 2025 14:50:21 +0800 Subject: [PATCH] Update main.rs --- listings/ch08-common-collections/listing-08-10/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/listings/ch08-common-collections/listing-08-10/src/main.rs b/listings/ch08-common-collections/listing-08-10/src/main.rs index a7d2dfa..a11a8e7 100644 --- a/listings/ch08-common-collections/listing-08-10/src/main.rs +++ b/listings/ch08-common-collections/listing-08-10/src/main.rs @@ -3,7 +3,7 @@ fn main() { { let v = vec![1, 2, 3, 4]; - // do stuff with v - } // <- v goes out of scope and is freed here + // 使用v + } // <- 在这里v离开作用域并被释放 // ANCHOR_END: here }