🩹 Correcciones menores en comentarios y código
This commit is contained in:
parent
5c818b463f
commit
4381db018e
4 changed files with 8 additions and 9 deletions
|
|
@ -91,7 +91,7 @@ impl Block {
|
|||
&self.classes
|
||||
}
|
||||
|
||||
/// Devuelve el título del bloque como [`L10n`].
|
||||
/// Devuelve el título del bloque.
|
||||
pub fn title(&self) -> &L10n {
|
||||
&self.title
|
||||
}
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ impl Intro {
|
|||
///
|
||||
/// ```rust
|
||||
/// # use pagetop::prelude::*;
|
||||
/// let intro = Intro::default().with_title(L10n::n("Título de entrada"));
|
||||
/// let intro = Intro::default().with_title(L10n::n("Intro title"));
|
||||
/// ```
|
||||
#[builder_fn]
|
||||
pub fn with_title(mut self, title: L10n) -> Self {
|
||||
|
|
@ -251,7 +251,7 @@ impl Intro {
|
|||
///
|
||||
/// ```rust
|
||||
/// # use pagetop::prelude::*;
|
||||
/// let intro = Intro::default().with_slogan(L10n::n("Un eslogan para la entrada"));
|
||||
/// let intro = Intro::default().with_slogan(L10n::n("A short slogan"));
|
||||
/// ```
|
||||
#[builder_fn]
|
||||
pub fn with_slogan(mut self, slogan: L10n) -> Self {
|
||||
|
|
@ -270,7 +270,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("Pulsa este botón"), |_| "/start")));
|
||||
/// let intro = Intro::default().with_button(Some((L10n::n("Learn more"), |_| "/start")));
|
||||
/// // Descarta el botón de la intro.
|
||||
/// let intro_no_button = Intro::default().with_button(None);
|
||||
/// ```
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ pub type ExtensionRef = &'static dyn Extension;
|
|||
///
|
||||
/// impl Extension for Blog {
|
||||
/// fn name(&self) -> L10n { L10n::n("Blog") }
|
||||
/// fn description(&self) -> L10n { L10n::n("Sistema de blogs") }
|
||||
/// fn description(&self) -> L10n { L10n::n("Blog system") }
|
||||
/// }
|
||||
/// ```
|
||||
pub trait Extension: AnyInfo + Send + Sync {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue