summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar rustrover <seekseat@126.com>2024-03-09 15:26:37 +0800
committerLibravatar rustrover <seekseat@126.com>2024-03-09 15:26:37 +0800
commit500ba962d17853bdef7aed49b150dbe3f45692e9 (patch)
tree52f7177fb7a31494a0d021c5f1c238145577a7c9 /widget
parenta341e39df63e9c4860eb796bf5c4b6a9b41116a2 (diff)
downloadiced-500ba962d17853bdef7aed49b150dbe3f45692e9.tar.gz
iced-500ba962d17853bdef7aed49b150dbe3f45692e9.tar.bz2
iced-500ba962d17853bdef7aed49b150dbe3f45692e9.zip
fix some comments
Signed-off-by: rustrover <seekseat@126.com>
Diffstat (limited to 'widget')
-rw-r--r--widget/src/image/viewer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/image/viewer.rs b/widget/src/image/viewer.rs
index 9666ff9f..f45c401a 100644
--- a/widget/src/image/viewer.rs
+++ b/widget/src/image/viewer.rs
@@ -126,7 +126,7 @@ where
};
// Only calculate viewport sizes if the images are constrained to a limited space.
- // If they are Fill|Portion let them expand within their alotted space.
+ // If they are Fill|Portion let them expand within their allotted space.
match expansion_size {
Length::Shrink | Length::Fixed(_) => {
let aspect_ratio = width as f32 / height as f32;