Skip to content

Commit a22ea1d

Browse files
authored
Update variables3.rs
1 parent e44454f commit a22ea1d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

exercises/variables/variables3.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
// variables3.rs
2-
//
3-
// Execute `rustlings hint variables3` or use the `hint` watch subcommand for a
4-
// hint.
5-
6-
71
fn main() {
2+
// 1. 声明变量x,显式指定类型为i32,绑定值10
83
let x: i32 = 10;
4+
// 2. 打印变量x的值,{}占位符会替换为x的实际值
95
println!("Number {}", x);
106
}

0 commit comments

Comments
 (0)