Skip to content

Commit 9334783

Browse files
13r0ckfmoko
andauthored
fix(structs1): Adjust wording (#573)
Co-authored-by: fmoko <mokou@posteo.de>
1 parent 964b2a3 commit 9334783

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

info.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,13 @@ name = "structs1"
225225
path = "exercises/structs/structs1.rs"
226226
mode = "test"
227227
hint = """
228-
Rust has more than one type of struct. Both variants are used to package related data together.
229-
On the one hand, there are normal, or classic, structs. These are named collections of related data stored in fields.
230-
The other variant is tuple structs. Basically just named tuples.
231-
In this exercise you need to implement one of each kind.
228+
Rust has more than one type of struct. Three actually, all variants are used to package related data together.
229+
There are normal (or classic) structs. These are named collections of related data stored in fields.
230+
Tuple structs are basically just named tuples.
231+
Finally, Unit structs. These don't have and fields and are useful for generics.
232232
233-
Read more about structs in The Book: https://doc.rust-lang.org/stable/book/ch05-00-structs.html"""
233+
In this exercise you need to complete and implement one of each kind.
234+
Read more about structs in The Book: https://doc.rust-lang.org/book/ch05-01-defining-structs.html"""
234235

235236
[[exercises]]
236237
name = "structs2"

0 commit comments

Comments
 (0)