Skip to content

Commit

Permalink
fix: doc comment fixed in value.go
Browse files Browse the repository at this point in the history
  • Loading branch information
arukiidou committed Oct 3, 2023
1 parent 322ffea commit 7969bd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions influxdb3/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import (
// NativeType are unions of type sets that can converted to [lineprotocol.NewValue].
//
// [lineprotocol.NewValue]: https://pkg.go.dev/github.com/influxdata/line-protocol/v2/lineprotocol#NewValue
//
// [line-protocol]: https://docs.influxdata.com/influxdb/cloud-serverless/reference/syntax/line-protocol/#field-set
type NativeType interface {
float64 | int64 | uint64 | string | []byte | bool
}
Expand Down Expand Up @@ -148,10 +146,10 @@ func NewValueFromString[S String](v S) lineprotocol.Value {
return data
}

// NewValueFromUInt is a convenient function for creating a [lineprotocol.Value] from [fmt.Stringer].
// NewValueFromStringer is a convenient function for creating a [lineprotocol.Value] from [fmt.Stringer].
//
// Parameters:
// - v: The value of the UInteger value.
// - v: The value of the [fmt.Stringer] value.
//
// Returns:
// - The created [lineprotocol.Value].
Expand All @@ -174,7 +172,7 @@ func NewValueFromBoolean[B Boolean](v B) lineprotocol.Value {
return lineprotocol.BoolValue(bool(v))
}

// NewValueFromBoolean is a convenient function for creating a [lineprotocol.Value] from [time.Time].
// NewValueFromTime is a convenient function for creating a [lineprotocol.Value] from [time.Time].
//
// Parameters:
// - v: The value of the [time.Time] value.
Expand Down

0 comments on commit 7969bd4

Please sign in to comment.