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 (#677)
Some checks failed
generate-markdown / auto-update-readme (push) Has been cancelled
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled

adjust comment to fit 7935818600
This commit is contained in:
mgoetzegb 2025-09-15 12:42:30 +02:00 committed by GitHub
parent 187d114631
commit 0dbf822cbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ import (
) )
// StrictJSONParse creates a JSON decoder that decodes an interface // 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 { func StrictJSONParse(jsonData io.Reader, target any) error {
decoder := json.NewDecoder(jsonData) decoder := json.NewDecoder(jsonData)