fix godoc

This commit is contained in:
Greg 2014-09-02 09:24:56 +09:00
parent 146c1112cd
commit df97727d47
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ func BoolFrom(b bool) Bool {
return NewBool(b, true)
}
// BoolFromPtr creates a new String that be null if f is nil.
// BoolFromPtr creates a new Bool that be null if f is nil.
func BoolFromPtr(b *bool) Bool {
if b == nil {
return NewBool(false, false)

View file

@ -28,7 +28,7 @@ func FloatFrom(f float64) Float {
return NewFloat(f, true)
}
// FloatFromPtr creates a new String that be null if f is nil.
// FloatFromPtr creates a new Float that be null if f is nil.
func FloatFromPtr(f *float64) Float {
if f == nil {
return NewFloat(0, false)

2
int.go
View file

@ -28,7 +28,7 @@ func IntFrom(i int64) Int {
return NewInt(i, true)
}
// IntFromPtr creates a new String that be null if i is nil.
// IntFromPtr creates a new Int that be null if i is nil.
func IntFromPtr(i *int64) Int {
if i == nil {
return NewInt(0, false)

View file

@ -26,7 +26,7 @@ func IntFrom(i int64) Int {
return NewInt(i, i != 0)
}
// IntFromPtr creates a new String that be null if i is nil.
// IntFromPtr creates a new Int that be null if i is nil.
func IntFromPtr(i *int64) Int {
if i == nil {
return NewInt(0, false)