From ea9dbc9443bed16c487b6b98499408798e8ddb7b Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 3 Dec 2025 23:06:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Corrige=20ejemplos=20con=20enlac?= =?UTF-8?q?es=20din=C3=A1micos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/component/intro.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/component/intro.rs b/src/base/component/intro.rs index 1a7c440b..0c49a9fc 100644 --- a/src/base/component/intro.rs +++ b/src/base/component/intro.rs @@ -47,7 +47,7 @@ pub enum IntroOpening { /// .with_slogan(L10n::l("intro_custom_slogan")) /// .with_button(Some(( /// L10n::l("intro_learn_more"), -/// |_| "/learn-more" +/// |_| "/learn-more".into() /// ))); /// ``` /// @@ -252,7 +252,7 @@ impl Intro { /// ```rust /// # use pagetop::prelude::*; /// // Define un botón con texto y una URL fija. - /// let intro = Intro::default().with_button(Some((L10n::n("Learn more"), |_| "/start"))); + /// let intro = Intro::default().with_button(Some((L10n::n("Start"), |_| "/start".into()))); /// // Descarta el botón de la intro. /// let intro_no_button = Intro::default().with_button(None); /// ```