Skip to content

Commit 9058ea1

Browse files
committed
fix doc comment: remove untrue claim of disallowing unknown fields
looks like a bug otherwise, but is the intended behavior: gocsaf@7935818
1 parent 187d114 commit 9058ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/misc/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
// StrictJSONParse creates a JSON decoder that decodes an interface
18-
// while not allowing unknown fields nor trailing data
18+
// while not allowing trailing data
1919
func StrictJSONParse(jsonData io.Reader, target any) error {
2020
decoder := json.NewDecoder(jsonData)
2121

0 commit comments

Comments
 (0)