Update util/gconv/internal/converter/converter_struct.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
hailaz
2025-09-05 10:17:16 +08:00
committed by GitHub
parent 50c5c33367
commit 07662ce9a8

View File

@ -160,7 +160,7 @@ func (c *Converter) Struct(params, pointer any, option ...StructOption) (err err
return err
}
if paramsMap == nil {
// fails converting params to map, it so cannot be converted to struct pointer.
// fails converting params to map, so it cannot be converted to struct pointer.
return gerror.NewCodef(
gcode.CodeInvalidParameter,
`convert params "%v" to "%s" failed`,