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!!!!") }