Fix a typo in 03_ticket_v1/08_stack (#19)

The type argument of `size_of` is `<u8>` instead of `<String>`.
This commit is contained in:
Fangyi Zhou authored and GitHub committed 2024-05-18 17:57:02 +02:00
1 parent 44f3260fbe
commit d5f407d720
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ using the [`std::mem::size_of`](https://doc.rust-lang.org/std/mem/fn.size_of.htm
For a `u8`, for example:
```rust
// We'll explain this funny-looking syntax (`::<String>`) later on.
// We'll explain this funny-looking syntax (`::<u8>`) later on.
// Ignore it for now.
assert_eq!(std::mem::size_of::<u8>(), 1);
```