diff --git a/helpers/pagetop-macros/src/lib.rs b/helpers/pagetop-macros/src/lib.rs index 2781aef..732bbad 100644 --- a/helpers/pagetop-macros/src/lib.rs +++ b/helpers/pagetop-macros/src/lib.rs @@ -277,8 +277,7 @@ pub fn builder_fn(_: TokenStream, item: TokenStream) -> TokenStream { .collect(); // Documentación del método alter_...(). - let alter_doc = - format!("Equivalente a [`Self::{with_name_str}()`], pero fuera del patrón *builder*."); + let doc = format!("Equivale a [`Self::{with_name_str}()`], pero fuera del patrón *builder*."); // Genera el código final. let expanded = match body_opt { @@ -288,7 +287,7 @@ pub fn builder_fn(_: TokenStream, item: TokenStream) -> TokenStream { fn #with_name #generics (self, #(#args),*) -> Self #where_clause; #(#non_doc_or_inline_attrs)* - #[doc = #alter_doc] + #[doc = #doc] fn #alter_ident #generics (&mut self, #(#args),*) -> &mut Self #where_clause; } } @@ -322,7 +321,7 @@ pub fn builder_fn(_: TokenStream, item: TokenStream) -> TokenStream { #with_fn #(#non_doc_or_inline_attrs)* - #[doc = #alter_doc] + #[doc = #doc] #vis_pub fn #alter_ident #generics (&mut self, #(#args),*) -> &mut Self #where_clause { #body } diff --git a/src/base/component/block.rs b/src/base/component/block.rs index 76d094f..b2a754e 100644 --- a/src/base/component/block.rs +++ b/src/base/component/block.rs @@ -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 } diff --git a/src/base/component/intro.rs b/src/base/component/intro.rs index a20d623..49488ee 100644 --- a/src/base/component/intro.rs +++ b/src/base/component/intro.rs @@ -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); /// ``` diff --git a/src/core/extension/definition.rs b/src/core/extension/definition.rs index 5699130..520153d 100644 --- a/src/core/extension/definition.rs +++ b/src/core/extension/definition.rs @@ -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 {