From 00a52e3d631df0a7610f4f17a9bd6d60205239fd Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 4 Aug 2025 08:46:49 +0200 Subject: vault backup: 2025-08-04 08:46:49 --- If is not a statement but an expression.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 If is not a statement but an expression.md (limited to 'If is not a statement but an expression.md') 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. -- cgit v1.2.3