diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-09-20 22:38:40 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-09-20 22:38:40 +0200 |
| commit | 61e33aa13f25c9b8f4e8e9087a4c482a484b3bf8 (patch) | |
| tree | 277534bd8a7c346fc4c637122a1dd9ccc5a33058 /tools | |
| parent | 44eab3849a646fdf4af81c18fafb0a6b448aa709 (diff) | |
Fix issue with formatting where clause not breaking.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/random/.snapshots/demo.odin | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/odinfmt/tests/random/.snapshots/demo.odin b/tools/odinfmt/tests/random/.snapshots/demo.odin index 00a42c5..0ab2124 100644 --- a/tools/odinfmt/tests/random/.snapshots/demo.odin +++ b/tools/odinfmt/tests/random/.snapshots/demo.odin @@ -1646,14 +1646,14 @@ where_clauses :: proc() { } } { // Parametric polymorphism checks - cross_2d :: proc(a, b: $T/[2]$E) -> E where intrinsics.type_is_numeric( - E, - ) { + cross_2d :: proc( + a, b: $T/[2]$E, + ) -> E where intrinsics.type_is_numeric(E) { return a.x * b.y - a.y * b.x } - cross_3d :: proc(a, b: $T/[3]$E) -> T where intrinsics.type_is_numeric( - E, - ) { + cross_3d :: proc( + a, b: $T/[3]$E, + ) -> T where intrinsics.type_is_numeric(E) { x := a.y * b.z - a.z * b.y y := a.z * b.x - a.x * b.z z := a.x * b.y - a.y * b.z |