diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 40439fe..5a13548 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,5 +14,5 @@ Thanks for your interest in contributing to Go by Example! first_. * We're not going to change the navigation of the site, in particular adding - a "previous section" link or an "index" link other than the on the title + a "previous section" link or an "index" link other than the one on the title text. diff --git a/examples/command-line-flags/command-line-flags.go b/examples/command-line-flags/command-line-flags.go index 96647f5..886de07 100644 --- a/examples/command-line-flags/command-line-flags.go +++ b/examples/command-line-flags/command-line-flags.go @@ -26,7 +26,7 @@ func main() { // This declares `numb` and `fork` flags, using a // similar approach to the `word` flag. numbPtr := flag.Int("numb", 42, "an int") - boolPtr := flag.Bool("fork", false, "a bool") + forkPtr := flag.Bool("fork", false, "a bool") // It's also possible to declare an option that uses an // existing var declared elsewhere in the program. @@ -45,7 +45,7 @@ func main() { // to get the actual option values. fmt.Println("word:", *wordPtr) fmt.Println("numb:", *numbPtr) - fmt.Println("fork:", *boolPtr) + fmt.Println("fork:", *forkPtr) fmt.Println("svar:", svar) fmt.Println("tail:", flag.Args()) }