Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions rustlings-macros/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,14 @@ name = "enums2"
dir = "08_enums"
test = false
hint = """
You can create enumerations that have different variants with different types
such as struct-like, tuple-like and unit-only variants."""
Enum variants can be defined using three different forms: struct-, tuple- and
unit-like. Here's an example enum definition, which uses all three forms:

enum EnumUsingAllVariantForms {
StructLike { named_field: bool },
TupleLike(bool),
UnitLike,
}"""

[[exercises]]
name = "enums3"
Expand Down
Loading