From 933c63f717bedfa3175eea9b1321b7040732f873 Mon Sep 17 00:00:00 2001 From: rasul Date: Mon, 6 Apr 2020 14:01:52 -0500 Subject: [PATCH] short comment to describe dispatch_quit() --- src/command/dispatch/quit.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command/dispatch/quit.rs b/src/command/dispatch/quit.rs index db57936..9df0bef 100644 --- a/src/command/dispatch/quit.rs +++ b/src/command/dispatch/quit.rs @@ -6,6 +6,7 @@ use crate::queue::SendQueue; use crate::state::State; impl Command { + /// Quit the game pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue { SendQueue(vec![(token, "Goodbye\n\n".into(), false, Some(State::Quit))].into()) }