Skip to content

Commit

Permalink
Fix type on Marshal docs (go-yaml#206).
Browse files Browse the repository at this point in the history
  • Loading branch information
hartzell authored and niemeyer committed Mar 26, 2018
1 parent 7c97801 commit f7e2331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f7e2331

Please sign in to comment.