mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Improve comment clarity for enums1 exercise
This commit is contained in:
parent
9fecdba101
commit
91ba337adf
@ -1,6 +1,7 @@
|
||||
#[derive(Debug)]
|
||||
enum Message {
|
||||
// TODO: Define a few types of messages as used below.
|
||||
// TODO: Define the message types used below.
|
||||
// These are simple enum variants with no data.
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@ -9,4 +10,4 @@ fn main() {
|
||||
println!("{:?}", Message::Echo);
|
||||
println!("{:?}", Message::ChangeColor);
|
||||
println!("{:?}", Message::Quit);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user