From b28d57086a4bfeee7163d6eb0644302f2ab0f6c1 Mon Sep 17 00:00:00 2001
From: sAkuraOfficial <157112946+sAkuraOfficial@users.noreply.github.com>
Date: Fri, 14 Jun 2024 01:43:49 +0900
Subject: [PATCH] fix a small bug in button example (#868)

---
 examples/component/button.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/component/button.cpp b/examples/component/button.cpp
index b336a6e0..501dc7e1 100644
--- a/examples/component/button.cpp
+++ b/examples/component/button.cpp
@@ -34,8 +34,8 @@ int main() {
   int value = 50;
 
   // clang-format off
-  auto btn_dec_01 = Button("-1", [&] { value += 1; }, Style());
-  auto btn_inc_01 = Button("+1", [&] { value -= 1; }, Style());
+  auto btn_dec_01 = Button("-1", [&] { value -= 1; }, Style());
+  auto btn_inc_01 = Button("+1", [&] { value += 1; }, Style());
   auto btn_dec_10 = Button("-10", [&] { value -= 10; }, Style());
   auto btn_inc_10 = Button("+10", [&] { value += 10; }, Style());
   // clang-format on
-- 
GitLab