Skip to content

Commit 199150f

Browse files
authored
Merge pull request #1171 from memark/patch-1
Add quotes for readability of output
2 parents c1b5a05 + 291da61 commit 199150f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/lifetimes/lifetimes1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fn main() {
2222
let string2 = "xyz";
2323

2424
let result = longest(string1.as_str(), string2);
25-
println!("The longest string is {}", result);
25+
println!("The longest string is '{}'", result);
2626
}

exercises/lifetimes/lifetimes2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ fn main() {
2323
let string2 = String::from("xyz");
2424
result = longest(string1.as_str(), string2.as_str());
2525
}
26-
println!("The longest string is {}", result);
26+
println!("The longest string is '{}'", result);
2727
}

0 commit comments

Comments
 (0)