Skip to content

Commit 7f36264

Browse files
Fix assert example
Co-Authored-By: lzutao <taolzu@gmail.com>
1 parent 0fde6ec commit 7f36264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2019-11-23-const-if-match.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const fn gcd(a: u32, b: u32) -> u32 {
3030
}
3131
}
3232

33-
const _: () = assert!(std::mem::size_of::<usize>(), 8, "Only 64-bit platforms are supported");
33+
const _: () = assert!(std::mem::size_of::<usize>() == 8, "Only 64-bit platforms are supported");
3434
```
3535

3636
## What exactly is going on here?

0 commit comments

Comments
 (0)