🩹 Corrige ejemplos con enlaces dinámicos
This commit is contained in:
parent
27ec613453
commit
ea9dbc9443
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ pub enum IntroOpening {
|
||||||
/// .with_slogan(L10n::l("intro_custom_slogan"))
|
/// .with_slogan(L10n::l("intro_custom_slogan"))
|
||||||
/// .with_button(Some((
|
/// .with_button(Some((
|
||||||
/// L10n::l("intro_learn_more"),
|
/// L10n::l("intro_learn_more"),
|
||||||
/// |_| "/learn-more"
|
/// |_| "/learn-more".into()
|
||||||
/// )));
|
/// )));
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
@ -252,7 +252,7 @@ impl Intro {
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use pagetop::prelude::*;
|
/// # use pagetop::prelude::*;
|
||||||
/// // Define un botón con texto y una URL fija.
|
/// // 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.
|
/// // Descarta el botón de la intro.
|
||||||
/// let intro_no_button = Intro::default().with_button(None);
|
/// let intro_no_button = Intro::default().with_button(None);
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue