aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-08-24 13:40:05 +0200
committerGitHub <noreply@github.com>2025-08-24 13:40:05 +0200
commitdb53fc4924383e41b1631ef35a80377446a99c4e (patch)
treea6c8b4c2df11e36d7b3693f60dd98cf3734e0285 /tools
parenta2a28c1c0c908b6a3fbe5a4c177b879dcae2d465 (diff)
parenta27c05b4415fa8b8eee10c134e8be6af6bbc9909 (diff)
Merge pull request #883 from BradLewis/fix/strip-trailing-whitespace
Remove trailing whitespace when using Allman style braces
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/tests/allman/.snapshots/switch.odin6
-rw-r--r--tools/odinfmt/tests/allman/.snapshots/when.odin4
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/odinfmt/tests/allman/.snapshots/switch.odin b/tools/odinfmt/tests/allman/.snapshots/switch.odin
index 10f6faf..9e73da7 100644
--- a/tools/odinfmt/tests/allman/.snapshots/switch.odin
+++ b/tools/odinfmt/tests/allman/.snapshots/switch.odin
@@ -1,16 +1,16 @@
package allman
-main :: proc()
+main :: proc()
{
num := 1
- switch num
+ switch num
{
case 0:
case 1:
}
- switch num
+ switch num
{
case 0:
case 1:
diff --git a/tools/odinfmt/tests/allman/.snapshots/when.odin b/tools/odinfmt/tests/allman/.snapshots/when.odin
index f34307f..1f489a3 100644
--- a/tools/odinfmt/tests/allman/.snapshots/when.odin
+++ b/tools/odinfmt/tests/allman/.snapshots/when.odin
@@ -1,10 +1,10 @@
package allman
-main :: proc()
+main :: proc()
{
TEST_BOOL := false
- when TEST_BOOL
+ when TEST_BOOL
{
}
}