1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

fix doc comment: remove untrue claim of disallowing unknown fields

looks like a bug otherwise, but is the intended behavior: 7935818600
This commit is contained in:
Marius Goetze 2025-09-08 11:19:24 +02:00
parent 187d114631
commit 9058ea138b

View file

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