From 0598a0ded48768a225461164511eea3e70c1430a Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Sat, 19 Apr 2025 15:48:22 -0600 Subject: [PATCH] PR-2094: Fix docs --- docs/v3/examples/flags/advanced.md | 2 +- docs/v3/examples/full-api-example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v3/examples/flags/advanced.md b/docs/v3/examples/flags/advanced.md index 49d9b63b94..a2bd6b1d56 100644 --- a/docs/v3/examples/flags/advanced.md +++ b/docs/v3/examples/flags/advanced.md @@ -402,7 +402,7 @@ func main() { Usage: "Use a randomized port", Value: 0, DefaultText: "random", - Action: func(ctx context.Context, cmd *cli.Command, v int64) error { + Action: func(ctx context.Context, cmd *cli.Command, v int) error { if v >= 65536 { return fmt.Errorf("Flag port value %v out of range[0-65535]", v) } diff --git a/docs/v3/examples/full-api-example.md b/docs/v3/examples/full-api-example.md index 7e175a0455..d582fd6b63 100644 --- a/docs/v3/examples/full-api-example.md +++ b/docs/v3/examples/full-api-example.md @@ -142,7 +142,7 @@ func main() { &cli.BoolFlag{Value: true, Name: "fancier"}, &cli.DurationFlag{Name: "howlong", Aliases: []string{"H"}, Value: time.Second * 3}, &cli.FloatFlag{Name: "howmuch"}, - &cli.IntFlag{Name: "longdistance", Validator: func (t int64) error { + &cli.IntFlag{Name: "longdistance", Validator: func (t int) error { if t < 10 { return fmt.Errorf("10 miles isnt long distance!!!!") }