mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 09:43:31 +02:00
enums3 solution
This commit is contained in:
@@ -457,12 +457,12 @@ such as no data, anonymous structs, a single string, tuples, etc."""
|
||||
name = "enums3"
|
||||
dir = "08_enums"
|
||||
hint = """
|
||||
As a first step, you can define enums to compile this code without errors.
|
||||
As a first step, define enums to compile the code without errors.
|
||||
|
||||
And then create a match expression in `process()`.
|
||||
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."""
|
||||
to get the variant's values."""
|
||||
|
||||
# STRINGS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user