summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2015-11-01 21:55:52 -0800
committerAlex Flint <[email protected]>2015-11-01 21:55:52 -0800
commit95bf6f25e0095ba2166439eb4e47aa08ddd5c49b (patch)
treeedc225487ce1f2a7e3d4a9ad2b75b51f358d7130 /parse.go
parent60f2612c0c59b979f71241405515e722bf6943f0 (diff)
fix first example in docs - h/t eric somerlade
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.go b/parse.go
index f94b3c8..6f90611 100644
--- a/parse.go
+++ b/parse.go
@@ -10,11 +10,11 @@
//
// defines two command line arguments, which can be set using any of
//
-// ./example --iter=1 --bar // bar is a boolean flag so its value is set to true
-// ./example -iter 1 // bar will default to its zero value
-// ./example --bar=true // foo will default to its zero value
+// ./example --iter=1 --debug // debug is a boolean flag so its value is set to true
+// ./example -iter 1 // debug defaults to its zero value (false)
+// ./example --debug=true // iter defaults to its zero value (zero)
//
-// The fastest way to learn how to use go-arg is to read the examples below.
+// The fastest way to see how to use go-arg is to read the examples below.
//
// Fields can be bool, string, any float type, or any signed or unsigned integer type.
// They can also be slices of any of the above, or slices of pointers to any of the above.