Skip to content

Commit

Permalink
update wrong doc comment with attribute value (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyuancheung authored Dec 20, 2021
1 parent 134a610 commit 7aba6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attribute/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (v Value) AsFloat64() float64 {
}

// AsFloat64Slice returns the []float64 value. Make sure that the Value's type is
// INT64SLICE.
// FLOAT64SLICE.
func (v Value) AsFloat64Slice() []float64 {
if s, ok := v.slice.(*[]float64); ok {
return *s
Expand All @@ -202,7 +202,7 @@ func (v Value) AsString() string {
}

// AsStringSlice returns the []string value. Make sure that the Value's type is
// INT64SLICE.
// STRINGSLICE.
func (v Value) AsStringSlice() []string {
if s, ok := v.slice.(*[]string); ok {
return *s
Expand Down

0 comments on commit 7aba6f7

Please sign in to comment.