From bf81f7e13f04d859302d6b0d5488eb242ab1161c Mon Sep 17 00:00:00 2001 From: "Afriza N. Arief" Date: Wed, 3 Jun 2020 00:38:31 +0700 Subject: [PATCH] Fix Marshal documentation on omitempty and IsZero (#608) --- yaml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml.go b/yaml.go index 89650e29..65aa9dd0 100644 --- a/yaml.go +++ b/yaml.go @@ -175,7 +175,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).