fix(structs1): rename to unit-like struct

This commit is contained in:
mokou
2022-07-14 12:00:46 +02:00
parent 19bec50399
commit 4dffa0d10d
2 changed files with 6 additions and 6 deletions

View File

@@ -367,7 +367,7 @@ hint = """
Rust has more than one type of struct. Three actually, all variants are used to package related data together.
There are normal (or classic) structs. These are named collections of related data stored in fields.
Tuple structs are basically just named tuples.
Finally, Unit structs. These don't have any fields and are useful for generics.
Finally, Unit-like structs. These don't have any fields and are useful for generics.
In this exercise you need to complete and implement one of each kind.
Read more about structs in The Book: https://doc.rust-lang.org/book/ch05-01-defining-structs.html"""