📝 Correcciones menores de doc y comentarios
This commit is contained in:
parent
d20a1f5f62
commit
69cd38cf1b
3 changed files with 4 additions and 5 deletions
|
|
@ -187,10 +187,10 @@ impl<C: Component> Embed<C> {
|
|||
/// }
|
||||
/// }; // El *guard* se libera aquí, antes del *drop* de `embed`.
|
||||
///
|
||||
/// let embed = Embed::with(Block::new().with_title(L10n::n("Título")));
|
||||
/// let embed = Embed::with(Block::new().with_title(L10n::n("Title")));
|
||||
/// {
|
||||
/// if let Some(mut component) = embed.get() {
|
||||
/// component.alter_title(L10n::n("Nuevo título"));
|
||||
/// component.alter_title(L10n::n("New Title"));
|
||||
/// }
|
||||
/// }; // El *guard* se libera aquí, antes del *drop* de `embed`.
|
||||
/// ```
|
||||
|
|
|
|||
|
|
@ -385,8 +385,7 @@ impl Context {
|
|||
/// Con `parts = 1` se usa el nombre corto del tipo. Si `parts` es `0` o supera el número de
|
||||
/// segmentos del *path*, entonces se usará el *path* completo.
|
||||
///
|
||||
/// Es útil para asignar identificadores HTML predecibles cuando el componente no recibe uno
|
||||
/// explícito.
|
||||
/// Es útil para asignar identificadores HTML cuando el componente no recibe uno explícito.
|
||||
pub fn required_id<C: Component>(&self, id: Option<String>, parts: usize) -> String {
|
||||
if let Some(id) = id {
|
||||
return id;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ pub enum MessageLevel {
|
|||
/// let info = StatusMessage::new(MessageLevel::Info, L10n::l("saved-successfully"));
|
||||
///
|
||||
/// // Aviso con texto literal sin traducción.
|
||||
/// let warn = StatusMessage::new(MessageLevel::Warning, L10n::n("Formulario incompleto."));
|
||||
/// let warn = StatusMessage::new(MessageLevel::Warning, L10n::n("Incomplete form."));
|
||||
/// ```
|
||||
#[derive(Debug, Getters)]
|
||||
pub struct StatusMessage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue