summaryrefslogtreecommitdiff
path: root/If is not a statement but an expression.md
diff options
context:
space:
mode:
Diffstat (limited to 'If is not a statement but an expression.md')
-rw-r--r--If is not a statement but an expression.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/If is not a statement but an expression.md b/If is not a statement but an expression.md
new file mode 100644
index 0000000..4ece748
--- /dev/null
+++ b/If is not a statement but an expression.md
@@ -0,0 +1,4 @@
+[[Rust]]
+[[Statement vs expression]]
+
+An if statement is not a statement in rust! It is an expression! Thus we can use it in an assignment for example.