Merge pull request #1171 from memark/patch-1
Add quotes for readability of output
This commit is contained in:
commit
199150fda2
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue