🩹 Corrige ejemplos con enlaces dinámicos

This commit is contained in:
Manuel Cillero 2025-12-03 23:06:35 +01:00
parent 27ec613453
commit ea9dbc9443

View file

@ -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);
/// ```