fix godoc
This commit is contained in:
parent
146c1112cd
commit
df97727d47
4 changed files with 4 additions and 4 deletions
2
bool.go
2
bool.go
|
@ -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)
|
||||
|
|
2
float.go
2
float.go
|
@ -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
2
int.go
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue