basic-types/statements-expressions #183
Replies: 78 comments 19 replies
-
Done!在很多语言都有语句和表达式的概念! |
Beta Was this translation helpful? Give feedback.
-
assert_eq!((), {});为什么是可以通过断言的呢? |
Beta Was this translation helpful? Give feedback.
-
x += 2
|
Beta Was this translation helpful? Give feedback.
-
x=x+2这一句,按直觉理解应该是作为语句的,作为语句时应该加;则返回()。 |
Beta Was this translation helpful? Give feedback.
-
2022.11.9 Done |
Beta Was this translation helpful? Give feedback.
-
I just finished solving this . started my rust journery this month.. And I wanna be among the best rust developers some years to come |
Beta Was this translation helpful? Give feedback.
-
第三题提供另一种解法: fn main() {
let v = {let x = 3;};
assert!(v == ());
} |
Beta Was this translation helpful? Give feedback.
-
Success(3/3) |
Beta Was this translation helpful? Give feedback.
-
basic-types/statements-expressions
Learning Rust By Practice, narrowing the gap between beginner and skilled-dev with challenging examples, exercises and projects.
https://zh.practice.rs/basic-types/statements-expressions.html
Beta Was this translation helpful? Give feedback.
All reactions