Skip to content

Commit 0fc6472

Browse files
committed
go/doc: Added the IsPredeclared clear, min, max
1 parent 8f5c690 commit 0fc6472

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/go/doc/reader.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import (
99
"fmt"
1010
"go/ast"
1111
"go/token"
12-
"internal/lazyregexp"
1312
"path"
1413
"slices"
1514
"strconv"
1615
"strings"
1716
"unicode"
1817
"unicode/utf8"
18+
19+
"internal/lazyregexp"
1920
)
2021

2122
// ----------------------------------------------------------------------------
@@ -971,6 +972,9 @@ var predeclaredFuncs = map[string]bool{
971972
"println": true,
972973
"real": true,
973974
"recover": true,
975+
"clear": true,
976+
"min": true,
977+
"max": true,
974978
}
975979

976980
var predeclaredConstants = map[string]bool{

0 commit comments

Comments
 (0)