aboutsummaryrefslogtreecommitdiff
path: root/docs/command-line-parsing.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 23:37:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 23:37:05 -0400
commit1a196aa8f724971e531487f9cdd541f7957cfd92 (patch)
tree52a36701065ab0e3f7012765c909c3b2a3fd2e49 /docs/command-line-parsing.md
parent4a3db447ce820617a72bdd9fc6217c84c3799bea (diff)
Update syntax in docs
Diffstat (limited to 'docs/command-line-parsing.md')
-rw-r--r--docs/command-line-parsing.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/command-line-parsing.md b/docs/command-line-parsing.md
index bd71ba41..2c1af0e6 100644
--- a/docs/command-line-parsing.md
+++ b/docs/command-line-parsing.md
@@ -5,10 +5,10 @@ Here's a simple example:
```tomo
# greet.tm
-func main(name:Text, be_excited=no):
+func main(name:Text, be_excited=no)
if be_excited
say("Hello $name!!!")
- else:
+ else
say("Hi $name.")
```
@@ -85,7 +85,7 @@ Parsing is case-insensitive:
```
# foo.tm
enum Foo(One, Two, Three)
-func main(foo:Foo):
+func main(foo:Foo)
>> foo
# Signature:
@@ -104,7 +104,7 @@ List-of-text arguments can be passed like this:
```tomo
# many-texts.tm
-func main(args:[Text]):
+func main(args:[Text])
>> args
```