fixed up tests

This commit is contained in:
Jack Mac 2021-10-01 16:31:01 -04:00
parent 074c40e927
commit cfb9a671ec
2 changed files with 3 additions and 3 deletions

View File

@ -426,8 +426,8 @@ impl Ui {
/// // or you could call
/// // if you want to let it drop on its own, name it `_wt`.
/// // never name it `_`, as this will drop it *immediately*.
/// wt.unwrap().end();
/// }
/// wt.end();
/// };
/// ```
pub fn window<Label: AsRef<str>>(&self, name: Label) -> Window<'_, '_, Label> {
Window::new(self, name)

View File

@ -418,7 +418,7 @@ impl<'ui> Ui {
/// for num in 0..10 {
/// // And now we add the loop number to the stack too,
/// // to make our buttons unique within this window.
/// let _id = ui.push_id(num);
/// let _id = ui.push_id_usize(num);
/// if ui.button("Click!") {
/// println!("Button {} clicked", num);
/// }