mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Remove fn main
from doctest (and also remove edition2018
cause I think it isn't useful)
Fix clippy "warning: needless `fn main` in doctest"
This commit is contained in:
parent
d68ec00deb
commit
77b24eaa3f
1 changed files with 5 additions and 7 deletions
|
@ -44,15 +44,13 @@ pub enum InlineKeyboardButtonKind {
|
|||
/// Build buttons
|
||||
///
|
||||
/// Example:
|
||||
/// ```edition2018
|
||||
/// ```
|
||||
/// use async_telegram_bot::types::InlineKeyboardButton;
|
||||
///
|
||||
/// fn main() {
|
||||
/// let url_button = InlineKeyboardButton::url(
|
||||
/// "Text".to_string(),
|
||||
/// "http://url.com".to_string(),
|
||||
/// );
|
||||
/// }
|
||||
/// ```
|
||||
impl InlineKeyboardButton {
|
||||
pub fn url(text: String, url: String) -> InlineKeyboardButton {
|
||||
|
|
Loading…
Reference in a new issue