Skip to content

Commit 4b6540c

Browse files
authored
fix(enums3): Update Message::ChangeColor to take a tuple. (#457)
1 parent 816b1f5 commit 4b6540c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/enums/enums3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ mod tests {
5151
position: Point{ x: 0, y: 0 },
5252
color: (0, 0, 0)
5353
};
54-
state.process(Message::ChangeColor(255, 0, 255));
54+
state.process(Message::ChangeColor((255, 0, 255)));
5555
state.process(Message::Echo(String::from("hello world")));
5656
state.process(Message::Move(Point{ x: 10, y: 15 }));
5757
state.process(Message::Quit);

0 commit comments

Comments
 (0)