diff --git a/crates/egui/src/widgets/image.rs b/crates/egui/src/widgets/image.rs index 0008dde3326..d8686c75931 100644 --- a/crates/egui/src/widgets/image.rs +++ b/crates/egui/src/widgets/image.rs @@ -335,7 +335,7 @@ pub struct ImageSize { /// Determines the maximum size of the image. /// - /// Defaults to `None` + /// Defaults to `Vec2::INFINITY` (no limit). pub max_size: Vec2, /// Determines how the image should shrink/expand/stretch/etc. to fit within its allocated space.