Compare commits

...

3 commits

Author SHA1 Message Date
Chad Skeeters
225770c051
Merge af136c8569 into a1bdfc355e 2024-11-11 16:30:41 +00:00
Chad Skeeters
af136c8569
Updates MarshalYAML interface to use 'any'
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
2024-11-11 10:30:39 -06:00
Chad Skeeters
f20d7c4b90
Updates comment to comply with go doc
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
2024-11-11 10:30:00 -06:00

View file

@ -1799,8 +1799,8 @@ func (d Decimal) MarshalJSON() ([]byte, error) {
return []byte(str), nil
}
// MarshalYAML implements the yaml.Marshaler interface.
func (d Decimal) MarshalYAML() (interface{}, error) {
// MarshalYAML implements the [yaml.Marshaler] interface.
func (d Decimal) MarshalYAML() (any, error) {
if MarshalYAMLWithoutQuotes {
n := yaml.Node{
Kind: yaml.ScalarNode,