Skip to content

Commit

Permalink
Merge pull request rust-lang#1171 from memark/patch-1
Browse files Browse the repository at this point in the history
Add quotes for readability of output
  • Loading branch information
shadows-withal authored Sep 6, 2022
2 parents c1b5a05 + 291da61 commit 199150f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/lifetimes/lifetimes1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion exercises/lifetimes/lifetimes2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 199150f

Please sign in to comment.