From f7e23311052d3dda728ce15788fb3727898afa17 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Sun, 25 Mar 2018 22:59:23 -0700 Subject: [PATCH] Fix type on Marshal docs (#206). --- yaml.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaml.go b/yaml.go index 483aae58..de85aa4c 100644 --- a/yaml.go +++ b/yaml.go @@ -157,8 +157,8 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) { // of the generated document will reflect the structure of the value itself. // Maps and pointers (to struct, string, int, etc) are accepted as the in value. // -// Struct fields are only unmarshalled if they are exported (have an upper case -// first letter), and are unmarshalled using the field name lowercased as the +// Struct fields are only marshalled if they are exported (have an upper case +// first letter), and are marshalled using the field name lowercased as the // default key. Custom keys may be defined via the "yaml" name in the field // tag: the content preceding the first comma is used as the key, and the // following comma-separated options are used to tweak the marshalling process.