Skip to content

Commit 8c6d30b

Browse files
authored
Add a comment as suggested (#1721)
1 parent 77ff3f4 commit 8c6d30b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sql/codegen/attribute/attribute.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ func ExtractDocString(module ...string) {
167167
if e != nil {
168168
log.Println("ExtractDocString failed: ", e, string(output))
169169
}
170+
// json.Unmarshal extends the map rather than reallocate a new one, see golang.org/pkg/encoding/json/#Unmarshal
170171
if e := json.Unmarshal(output, &PremadeModelParamsDocs); e != nil {
171172
log.Println("ExtractDocString failed:", e, string(output))
172173
}

0 commit comments

Comments
 (0)