Merge pull request #1171 from memark/patch-1

Add quotes for readability of output
This commit is contained in:
liv 2022-09-06 12:16:54 +02:00 committed by GitHub
commit 199150fda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,5 +22,5 @@ fn main() {
let string2 = "xyz";
let result = longest(string1.as_str(), string2);
println!("The longest string is {}", result);
println!("The longest string is '{}'", result);
}

View File

@ -23,5 +23,5 @@ fn main() {
let string2 = String::from("xyz");
result = longest(string1.as_str(), string2.as_str());
}
println!("The longest string is {}", result);
println!("The longest string is '{}'", result);
}