From ab76ec07f277fccf3a9815b183b339c69fd32d2b Mon Sep 17 00:00:00 2001 From: Waffle Date: Sun, 7 Feb 2021 02:41:29 +0300 Subject: [PATCH] fix docs --- src/types/inline_query_result_cached_gif.rs | 4 ++-- src/types/parse_mode.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/inline_query_result_cached_gif.rs b/src/types/inline_query_result_cached_gif.rs index 6712ccdf..6c0b8069 100644 --- a/src/types/inline_query_result_cached_gif.rs +++ b/src/types/inline_query_result_cached_gif.rs @@ -24,12 +24,12 @@ pub struct InlineQueryResultCachedGif { /// Caption of the GIF file to be sent, 0-1024 characters. pub caption: Option, - /// Send [`ParseMode::Markdown`] or [`ParseMode::HTML`], if you want + /// Send [`ParseMode::Markdown`] or [`ParseMode::Html`], if you want /// Telegram apps to show [bold, italic, fixed-width text or inline /// URLs] in the media caption. /// /// [`ParseMode::Markdown`]: crate::types::ParseMode::Markdown - /// [`ParseMode::HTML`]: crate::types::ParseMode::HTML + /// [`ParseMode::Html`]: crate::types::ParseMode::Html /// [bold, italic, fixed-width text or inline URLs]: https://core.telegram.org/bots/api#formatting-options pub parse_mode: Option, diff --git a/src/types/parse_mode.rs b/src/types/parse_mode.rs index ac985af9..7f0fba9a 100644 --- a/src/types/parse_mode.rs +++ b/src/types/parse_mode.rs @@ -69,7 +69,7 @@ use serde::{Deserialize, Serialize}; /// ignored. /// /// ## HTML style -/// To use this mode, pass [`HTML`] in the `parse_mode` field. +/// To use this mode, pass [`Html`] in the `parse_mode` field. /// The following tags are currently supported: /// ````text /// bold, bold @@ -123,7 +123,7 @@ use serde::{Deserialize, Serialize}; /// `*2*\**2=4*` for bold `2*2=4`. /// /// [`MarkdownV2`]: ParseMode::MarkdownV2 -/// [`HTML`]: ParseMode::HTML +/// [`Html`]: ParseMode::Html /// [`Markdown`]: ParseMode::Markdown #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub enum ParseMode {