mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
feat(enums3): Add hint
This commit is contained in:
parent
886d599c96
commit
d0e8efd19e
1 changed files with 5 additions and 1 deletions
|
@ -415,7 +415,11 @@ such as no data, anonymous structs, a single string, tuples, ...etc"""
|
||||||
name = "enums3"
|
name = "enums3"
|
||||||
path = "exercises/enums/enums3.rs"
|
path = "exercises/enums/enums3.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = "No hints this time ;)"
|
hint = """
|
||||||
|
As a first step, you can define enums to compile this code without errors.
|
||||||
|
and then create a match expression in `process()`.
|
||||||
|
Note that you need to deconstruct some message variants
|
||||||
|
in the match expression to get value in the variant."""
|
||||||
|
|
||||||
# MODULES
|
# MODULES
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue