Example: fix small flaw in example/button.cpp (#751)

This commit is contained in:
Contexploit 2023-09-21 00:23:05 +08:00 committed by GitHub
parent 550a59f0a5
commit 20d4be286b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ int main() {
}) | flex,
Container::Horizontal({
Button("-10", [&] { value -= 10; }, ButtonStyle()),
Button("-10", [&] { value += 10; }, ButtonStyle()),
Button("+10", [&] { value += 10; }, ButtonStyle()),
}) | flex,
});