diff --git a/web/api/v1/json_codec.go b/web/api/v1/json_codec.go index f07e57696d..6bd095a8f3 100644 --- a/web/api/v1/json_codec.go +++ b/web/api/v1/json_codec.go @@ -156,7 +156,7 @@ func marshalSampleJSON(s promql.Sample, stream *jsoniter.Stream) { stream.WriteObjectEnd() } -// marshalFPointJSON writes `[ts, "1.234"]`. +// unsafeMarshalFPointJSON writes `[ts, "1.234"]`. func unsafeMarshalFPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) { p := *((*promql.FPoint)(ptr)) marshalFPointJSON(p, stream) @@ -170,7 +170,7 @@ func marshalFPointJSON(p promql.FPoint, stream *jsoniter.Stream) { stream.WriteArrayEnd() } -// marshalHPointJSON writes `[ts, { < histogram, see jsonutil.MarshalHistogram > } ]`. +// unsafeMarshalHPointJSON writes `[ts, { < histogram, see jsonutil.MarshalHistogram > } ]`. func unsafeMarshalHPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) { p := *((*promql.HPoint)(ptr)) marshalHPointJSON(p, stream)