From 34d44e519571a0b7c7bc561b68ba827a5e0e98d7 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 13 Feb 2020 23:38:05 +0600 Subject: [PATCH] Add a description to examples/dialogue_bot --- examples/dialogue_bot/src/main.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/dialogue_bot/src/main.rs b/examples/dialogue_bot/src/main.rs index 4591523a..365dabb3 100644 --- a/examples/dialogue_bot/src/main.rs +++ b/examples/dialogue_bot/src/main.rs @@ -1,3 +1,19 @@ +// This is a bot that asks your full name, your age, your favourite kind of +// music and sends all the gathered information back. +// +// # Example +// ``` +// - Let's start! First, what's your full name? +// - Luke Skywalker +// - WHat a wonderful name! Your age? +// - 26 +// - Good. Now choose your favourite music +// *A keyboard of music kinds is displayed* +// *You select Metal* +// - Metal +// - Fine. Your full name: Luke Skywalker, your age: 26, your favourite music: Metal +// ``` + #![allow(clippy::trivial_regex)] #[macro_use]