From 4f10037b691452a874a7ce25421bc035fd35f045 Mon Sep 17 00:00:00 2001 From: "Afriza N. Arief" Date: Wed, 3 Jun 2020 00:38:03 +0700 Subject: [PATCH] Fix Marshal documentation on omitempty and IsZero (#609) --- yaml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml.go b/yaml.go index 009ec304..a38b88fd 100644 --- a/yaml.go +++ b/yaml.go @@ -194,7 +194,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) { // Zero valued structs will be omitted if all their public // fields are zero, unless they implement an IsZero // method (see the IsZeroer interface type), in which -// case the field will be included if that method returns true. +// case the field will be excluded if IsZero returns true. // // flow Marshal using a flow style (useful for structs, // sequences and maps).