Fixes godoc links in example tests (#459)

thanks for noticing this @mathetake

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-04-14 08:38:52 +08:00
committed by GitHub
parent 958ce19c0b
commit dbf089b897
4 changed files with 8 additions and 8 deletions

View File

@@ -4,11 +4,11 @@ import (
"os"
)
// ExampleMain ensures the following will work:
// Example_main ensures the following will work:
//
// go build add.go
// ./add 7 9
func ExampleMain() {
func Example_main() {
// Save the old os.Args and replace with our example input.
oldArgs := os.Args