diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
| commit | 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (patch) | |
| tree | b7193a8021ef9ab57c71319ecad797bf51849025 /test/minmax.tm | |
| parent | 5910998a19aab5dab2c761aea946cfbb09a37918 (diff) | |
Syntax tweak: use ':' for blocks
Diffstat (limited to 'test/minmax.tm')
| -rw-r--r-- | test/minmax.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/minmax.tm b/test/minmax.tm index c3af68d6..c2f070f6 100644 --- a/test/minmax.tm +++ b/test/minmax.tm @@ -1,9 +1,9 @@ -struct Foo(x:Int, y:Int) - func len(f:Foo)->Num +struct Foo(x:Int, y:Int): + func len(f:Foo)->Num: return Num.sqrt(f.x*f.x + f.y*f.y) -func main() +func main(): >> 3 _min_ 5 = 3 >> 5 _min_ 3 |
