diff options
author | 2024-05-23 13:38:22 +0200 | |
---|---|---|
committer | 2024-05-23 13:38:22 +0200 | |
commit | 663a081bdd507da0b5ca7d4dc30d78a20b4618af (patch) | |
tree | 89482c8d1e3a03e00b3a8151abbb81e30ae5898c /examples/game_of_life/src/main.rs | |
parent | 468794d918eb06c1dbebb33c32b10017ad335f05 (diff) | |
parent | d8ba6b0673a33724a177f3a1ba59705527280142 (diff) | |
download | iced-663a081bdd507da0b5ca7d4dc30d78a20b4618af.tar.gz iced-663a081bdd507da0b5ca7d4dc30d78a20b4618af.tar.bz2 iced-663a081bdd507da0b5ca7d4dc30d78a20b4618af.zip |
Merge pull request #2338 from derezzedex/feat/text-macro
Introduce `text` macro
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r-- | examples/game_of_life/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 0716b2a4..8f1f7a54 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -163,7 +163,7 @@ fn view_controls<'a>( let speed_controls = row![ slider(1.0..=1000.0, speed as f32, Message::SpeedChanged), - text(format!("x{speed}")).size(16), + text!("x{speed}").size(16), ] .align_items(Alignment::Center) .spacing(10); |