From b8adbdad6d9b984c914151bd0a9293b3542394da Mon Sep 17 00:00:00 2001 From: Adam <134429563+RustoMCSpit@users.noreply.github.com> Date: Thu, 19 Mar 2026 16:28:49 +0000 Subject: [PATCH] Clean up comments in takes_and_gives_back function Removed commented-out lines for clarity. --- .../ch04-understanding-ownership/listing-04-04/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/listings/ch04-understanding-ownership/listing-04-04/src/main.rs b/listings/ch04-understanding-ownership/listing-04-04/src/main.rs index c18dc5bc90..785b487624 100644 --- a/listings/ch04-understanding-ownership/listing-04-04/src/main.rs +++ b/listings/ch04-understanding-ownership/listing-04-04/src/main.rs @@ -23,8 +23,7 @@ fn gives_ownership() -> String { // gives_ownership will move its // This function takes a String and returns a String. fn takes_and_gives_back(a_string: String) -> String { - // a_string comes into - // scope + // a_string comes into scope a_string // a_string is returned and moves out to the calling function }