Skip to content

Commit

Permalink
fix(enums3): Update Message::ChangeColor to take a tuple. (rust-lang#457
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yukihane authored and Jose Palazon committed Nov 8, 2020
1 parent 8c7cae3 commit 57fe3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/enums/enums3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod tests {
position: Point{ x: 0, y: 0 },
color: (0, 0, 0)
};
state.process(Message::ChangeColor(255, 0, 255));
state.process(Message::ChangeColor((255, 0, 255)));
state.process(Message::Echo(String::from("hello world")));
state.process(Message::Move(Point{ x: 10, y: 15 }));
state.process(Message::Quit);
Expand Down

0 comments on commit 57fe3bb

Please sign in to comment.