Updated projects/data_types'.

This commit is contained in:
Hector PENG
2026-02-05 13:05:45 +08:00
parent 01e24bb2b8
commit f82d8f3698

View File

@@ -2,6 +2,8 @@ fn main() {
let c = 'z'; let c = 'z';
let z: char = ''; // 带有显式的类型注解 let z: char = ''; // 带有显式的类型注解
let heart_eyed_cat = '😻'; let heart_eyed_cat = '😻';
let a: [i32; 5] = [-1, 0, 1, 2, 3];
println! ("c 为 {c}, z 为 {z}, 爱心猫{heart_eyed_cat}"); println! ("c 为 {c}, z 为 {z}, 爱心猫{heart_eyed_cat}");
println! ("a 为 {:#?}", a);
} }