aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Cale <[email protected]>2018-10-24 13:59:23 -0500
committerEric Paris <[email protected]>2018-10-24 14:59:23 -0400
commitb5e1a803ebe3b3a3c638b710b4aef53942beb7e3 (patch)
tree5189451a832aff3d1b97435befff53a59fdf352d
parent298182f68c66c05229eb03ac171abe6e309ee79a (diff)
Sentence restructure and grammar fix (#188)
There are helpers function != There are helper functions. Great repo.
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index b052414..7eacc5b 100644
--- a/README.md
+++ b/README.md
@@ -86,8 +86,8 @@ fmt.Println("ip has value ", *ip)
fmt.Println("flagvar has value ", flagvar)
```
-There are helpers function to get values later if you have the FlagSet but
-it was difficult to keep up with all of the flag pointers in your code.
+There are helper functions available to get the value stored in a Flag if you have a FlagSet but find
+it difficult to keep up with all of the pointers in your code.
If you have a pflag.FlagSet with a flag called 'flagname' of type int you
can use GetInt() to get the int value. But notice that 'flagname' must exist
and it must be an int. GetString("flagname") will fail.