From 24ec389e824e13387454f1b89f3b1647bdc600e9 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Thu, 31 Dec 2015 14:24:59 +0900 Subject: [PATCH] fix typos --- field.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/field.go b/field.go index 1178b0c..ad7ca13 100644 --- a/field.go +++ b/field.go @@ -41,7 +41,7 @@ func (f *Field) IsExported() bool { return f.field.PkgPath == "" } -// IsZero returns true if the given field is not initalized (has a zero value). +// IsZero returns true if the given field is not initialized (has a zero value). // It panics if the field is not exported. func (f *Field) IsZero() bool { zero := reflect.Zero(f.value.Type()).Interface() @@ -61,7 +61,7 @@ func (f *Field) Kind() reflect.Kind { } // Set sets the field to given value v. It retuns an error if the field is not -// settable (not addresable or not exported) or if the given value's type +// settable (not addressable or not exported) or if the given value's type // doesn't match the fields type. func (f *Field) Set(val interface{}) error { // we can't set unexported fields, so be sure this field is exported