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 --- There is no truthiness.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 There is no truthiness.md (limited to 'There is no truthiness.md') 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 -- cgit v1.2.3