summaryrefslogtreecommitdiff
path: root/There is no truthiness.md
diff options
context:
space:
mode:
Diffstat (limited to 'There is no truthiness.md')
-rw-r--r--There is no truthiness.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/There is no truthiness.md b/There is no truthiness.md
new file mode 100644
index 0000000..a573369
--- /dev/null
+++ b/There is no truthiness.md
@@ -0,0 +1,13 @@
+[[Rust]]
+
+It does not work to write something like:
+```rust
+let number = 3;
+
+if number {
+// do something
+}
+```
+like in other languages
+
+Rust expects only a `bool` in an if statement, so we'd need to compare it. \ No newline at end of file