🚚 Rename add_element() to more descriptive name

This commit is contained in:
Manuel Cillero 2024-02-29 23:34:31 +01:00
parent aba7c4d8ce
commit 5840dc215e
2 changed files with 4 additions and 4 deletions

View file

@ -98,7 +98,7 @@ impl Form {
}
#[rustfmt::skip]
pub fn with_element(mut self, element: impl ComponentTrait) -> Self {
pub fn add_element(mut self, element: impl ComponentTrait) -> Self {
self.stuff.alter_value(ArcAnyOp::Add(ArcAnyComponent::new(element)));
self
}