summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index e7e05b29..dd1e5213 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -399,10 +399,10 @@ fn view_controls(tasks: &[Task], current_filter: Filter) -> Element<Message> {
};
row![
- text(format!(
+ text!(
"{tasks_left} {} left",
if tasks_left == 1 { "task" } else { "tasks" }
- ))
+ )
.width(Length::Fill),
row![
filter_button("All", Filter::All, current_filter),