Skip to content

Commit

Permalink
examples: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Dec 9, 2024
1 parent b700610 commit db6353d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/custom_orientable/custom_orientable/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl ObjectImpl for CustomOrientable {
}

fn dispose(&self) {
// Child widgets need to be manually unparented in `dispose()`.
// Child widgets need to be manually parentless in `dispose()`.
if let Some(child) = self.first_label.borrow_mut().take() {
child.unparent();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_widget/ex_button/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl ObjectImpl for ExButton {
}

fn dispose(&self) {
// Child widgets need to be manually unparented in `dispose()`.
// Child widgets need to be manually parentless in `dispose()`.
if let Some(child) = self.child.borrow_mut().take() {
child.unparent();
}
Expand Down

0 comments on commit db6353d

Please sign in to comment.