Просмотр исходного кода

Fix type on Marshal docs (#206).

George Hartzell 8 лет назад
Родитель
Сommit
f7e2331105
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      yaml.go

+ 2 - 2
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.