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:
parent
187d114631
commit
9058ea138b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue