mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-07 03:09:19 +00:00
Update info.toml
I agree this is more clear Co-authored-by: fmoko <mokou@posteo.de>
This commit is contained in:
parent
6095b512d3
commit
3276262c26
@ -228,7 +228,7 @@ hint = """
|
|||||||
Rust has more than one type of struct. Three actually, all variants are used to package related data together.
|
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 normal (or classic) structs. These are named collections of related data stored in fields.
|
||||||
Tuple structs are asically just named tuples.
|
Tuple structs are asically just named tuples.
|
||||||
Finaly, Unit structs. These are field-less and are useful for generics.
|
Finally, Unit structs. These don't have and 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"""
|
Read more about structs in The Book: https://doc.rust-lang.org/book/ch05-01-defining-structs.html"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user