1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-22 22:51:12 +02:00

Minor whitespace changes (#2595)

This commit is contained in:
Nicole L
2025-02-06 09:52:29 -08:00
committed by GitHub
parent e1ed6eaf47
commit 6a25d7be04
3 changed files with 11 additions and 1 deletions

View File

@@ -14,8 +14,10 @@ the referenced data cannot change.
fn main() {
let a = 'A';
let b = 'B';
let mut r: &char = &a;
println!("r: {}", *r);
r = &b;
println!("r: {}", *r);
}

View File

@@ -23,6 +23,7 @@ fn main() {
let mut s2: String = String::from("Hello ");
println!("s2: {s2}");
s2.push_str(s1);
println!("s2: {s2}");