From 1bee0a9c265ab6433b2d0bbca219641cdcb34aba Mon Sep 17 00:00:00 2001 From: Waffle Date: Thu, 19 Sep 2019 00:57:23 +0300 Subject: [PATCH] Fix test `src/core/types/inline_keyboard_markup.rs - core::types::inline_keyboard_markup::InlineKeyboardMarkup (line 18)` --- src/core/types/inline_keyboard_markup.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/core/types/inline_keyboard_markup.rs b/src/core/types/inline_keyboard_markup.rs index 1217a1bc..37c753a4 100644 --- a/src/core/types/inline_keyboard_markup.rs +++ b/src/core/types/inline_keyboard_markup.rs @@ -15,20 +15,19 @@ pub struct InlineKeyboardMarkup { /// Build Markup /// /// Example: -/// ```edition2018 +/// ``` /// use async_telegram_bot::core::types::{ /// InlineKeyboardMarkup, /// InlineKeyboardButton /// }; /// -/// fn main() { -/// let url_button = InlineKeyboardButton::url( -/// "text".to_string(), -/// "http://url.com".to_string() -/// ); -/// let keyboard = InlineKeyboardMarkup::new() -/// .row(vec![url_button]); -/// } +/// +/// let url_button = InlineKeyboardButton::url( +/// "text".to_string(), +/// "http://url.com".to_string() +/// ); +/// let keyboard = InlineKeyboardMarkup::new() +/// .append_row(vec![url_button]); /// ``` impl InlineKeyboardMarkup { pub fn new() -> Self {