mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 17:23:36 +02:00
structs1 solution
This commit is contained in:
@@ -402,15 +402,14 @@ 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.
|
||||
There are regular structs. These are named collections of related data stored in
|
||||
fields.
|
||||
|
||||
Tuple structs are basically just named tuples.
|
||||
|
||||
Finally, Unit-like structs. These don't have any fields and are useful for
|
||||
generics.
|
||||
Finally, unit 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.
|
||||
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"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user