mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-19 12:43:28 +08:00
Updated projects/data_types'.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user