fix(enums3): add extra tuple comment

This commit is contained in:
liv 2022-12-23 16:47:48 +01:00 committed by GitHub
parent 31469560ec
commit 40b1b07915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,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))); // Remember: The extra parentheses mark a tuple type.
state.process(Message::Echo(String::from("hello world")));
state.process(Message::Move(Point { x: 10, y: 15 }));
state.process(Message::Quit);