From f82d8f36984cf34e06732cca7b7115e0caec10f3 Mon Sep 17 00:00:00 2001 From: Hector PENG Date: Thu, 5 Feb 2026 13:05:45 +0800 Subject: [PATCH] Updated projects/data_types'. --- projects/data_types/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/data_types/src/main.rs b/projects/data_types/src/main.rs index 6613136..3362703 100644 --- a/projects/data_types/src/main.rs +++ b/projects/data_types/src/main.rs @@ -2,6 +2,8 @@ fn main() { let c = 'z'; let z: char = 'ℤ'; // 带有显式的类型注解 let heart_eyed_cat = '😻'; + let a: [i32; 5] = [-1, 0, 1, 2, 3]; println! ("c 为 {c}, z 为 {z}, 爱心猫{heart_eyed_cat}"); + println! ("a 为 {:#?}", a); }