diff --git a/int.go b/int.go index be23bd2..30c267b 100644 --- a/int.go +++ b/int.go @@ -26,7 +26,7 @@ func IntFrom(i int64) Int { return NewInt(i, i != 0) } -// StringFrom creates a new String that be null if i is nil. +// IntFromPtr creates a new String that be null if i is nil. func IntFromPtr(i *int64) Int { if i == nil { return NewInt(0, false) diff --git a/nuller/int.go b/nuller/int.go index ba8d3a4..95345ba 100644 --- a/nuller/int.go +++ b/nuller/int.go @@ -28,7 +28,7 @@ func IntFrom(i int64) Int { return NewInt(i, true) } -// StringFrom creates a new String that be null if i is nil. +// IntFromPtr creates a new String that be null if i is nil. func IntFromPtr(i *int64) Int { if i == nil { return NewInt(0, false) diff --git a/nuller/string.go b/nuller/string.go index a9563c3..12bc030 100644 --- a/nuller/string.go +++ b/nuller/string.go @@ -17,7 +17,7 @@ func StringFrom(s string) String { return NewString(s, true) } -// StringFrom creates a new String that be null if s is nil. +// StringFromPtr creates a new String that be null if s is nil. func StringFromPtr(s *string) String { if s == nil { return NewString("", false) diff --git a/string.go b/string.go index d7bbf1c..0b53cfa 100644 --- a/string.go +++ b/string.go @@ -29,7 +29,7 @@ func StringFrom(s string) String { return NewString(s, s != "") } -// StringFrom creates a new String that be null if s is nil or blank. +// StringFromPtr creates a new String that be null if s is nil or blank. // It will make s point to the String's value. func StringFromPtr(s *string) String { if s == nil { @@ -76,7 +76,7 @@ func (s *String) UnmarshalText(text []byte) error { return nil } -// Pointer returns a pointer to this String's value, or a nil pointer if this String is null. +// Ptr returns a pointer to this String's value, or a nil pointer if this String is null. func (s String) Ptr() *string { if !s.Valid { return nil