mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 22:27:17 +02:00
Merge pull request #16789 from gopherorg/main
chore: fix some function names in comment
This commit is contained in:
commit
c3276ea40c
@ -156,7 +156,7 @@ func marshalSampleJSON(s promql.Sample, stream *jsoniter.Stream) {
|
|||||||
stream.WriteObjectEnd()
|
stream.WriteObjectEnd()
|
||||||
}
|
}
|
||||||
|
|
||||||
// marshalFPointJSON writes `[ts, "1.234"]`.
|
// unsafeMarshalFPointJSON writes `[ts, "1.234"]`.
|
||||||
func unsafeMarshalFPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) {
|
func unsafeMarshalFPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) {
|
||||||
p := *((*promql.FPoint)(ptr))
|
p := *((*promql.FPoint)(ptr))
|
||||||
marshalFPointJSON(p, stream)
|
marshalFPointJSON(p, stream)
|
||||||
@ -170,7 +170,7 @@ func marshalFPointJSON(p promql.FPoint, stream *jsoniter.Stream) {
|
|||||||
stream.WriteArrayEnd()
|
stream.WriteArrayEnd()
|
||||||
}
|
}
|
||||||
|
|
||||||
// marshalHPointJSON writes `[ts, { < histogram, see jsonutil.MarshalHistogram > } ]`.
|
// unsafeMarshalHPointJSON writes `[ts, { < histogram, see jsonutil.MarshalHistogram > } ]`.
|
||||||
func unsafeMarshalHPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) {
|
func unsafeMarshalHPointJSON(ptr unsafe.Pointer, stream *jsoniter.Stream) {
|
||||||
p := *((*promql.HPoint)(ptr))
|
p := *((*promql.HPoint)(ptr))
|
||||||
marshalHPointJSON(p, stream)
|
marshalHPointJSON(p, stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user