diff --git a/egui/src/ui.rs b/egui/src/ui.rs index b92539df..c01b4207 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -579,7 +579,7 @@ impl Ui { /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. - /// If you want to fill the space, ask about `available().size()` and use that. + /// If you want to fill the space, ask about [`Ui::available_size`] and use that. /// /// You may get MORE space than you asked for, for instance /// for justified layouts, like in menus. @@ -624,7 +624,7 @@ impl Ui { /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. - /// If you want to fill the space, ask about `available().size()` and use that. + /// If you want to fill the space, ask about [`Ui::available_size`] and use that. /// /// You may get MORE space than you asked for, for instance /// for justified layouts, like in menus.