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)
adjust comment to fit 7935818600
This commit is contained in:
parent
187d114631
commit
0dbf822cbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue