Skip to content

Commit a4ef5f1

Browse files
authored
fix method name in two Histogram builder method javadocs (#1302)
Signed-off-by: Benjamin Peterson <[email protected]>
1 parent ef4b5bf commit a4ef5f1

File tree

1 file changed

+2
-2
lines changed
  • prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics

1 file changed

+2
-2
lines changed

prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics/Histogram.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ public Builder classicUpperBounds(double... upperBounds) {
765765
/**
766766
* Create classic histogram buckets with linear bucket boundaries.
767767
*
768-
* <p>Example: {@code withClassicLinearBuckets(1.0, 0.5, 10)} creates bucket boundaries {@code
768+
* <p>Example: {@code classicLinearUpperBounds(1.0, 0.5, 10)} creates bucket boundaries {@code
769769
* [[1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5]}.
770770
*
771771
* @param start is the first bucket boundary
@@ -786,7 +786,7 @@ public Builder classicLinearUpperBounds(double start, double width, int count) {
786786
/**
787787
* Create classic histogram buckets with exponential boundaries.
788788
*
789-
* <p>Example: {@code withClassicExponentialBuckets(1.0, 2.0, 10)} creates bucket boundaries
789+
* <p>Example: {@code classicExponentialUpperBounds(1.0, 2.0, 10)} creates bucket boundaries
790790
* {@code [1.0, 2.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0, 256.0, 512.0]}
791791
*
792792
* @param start is the first bucket boundary

0 commit comments

Comments
 (0)