diff --git a/doc/go1.21.html b/doc/go1.21.html index d0fd953ba1..a30811794c 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -495,12 +495,14 @@ Do not send CLs removing the interior tags from such phrases.
flag
-

- TODO: https://go.dev/issue/53747: add BoolFunc(name, usage string, fn func(string)error) -

- -

- TODO: https://go.dev/cl/476015: flag: add BoolFunc; FlagSet.BoolFunc; modified api/next/53747.txt +

+ The new BoolFunc + function and + FlagSet.BoolFunc + method define a flag that does not require an argument and calls + a function when the flag is used. This is similar to + Func but for a + boolean flag.