Skip to content

Commit

Permalink
docs(prometheus): fix typos/inaccuracies in VariantIndexer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dnut committed Oct 9, 2024
1 parent e7a1ec1 commit 9958d04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/prometheus/variant_counter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ pub const VariantCounts = struct {
/// it will assign the numbers 0-9 to each of the variants.
///
/// Enums usually already have numbers with this property, but it's
/// not guaranteed. This is particularly useful for variants, whose
/// not guaranteed. This is particularly useful for errors, whose
/// integers are likely not continuous.
///
/// You can provide an variant to determine its index, or provide an
/// index to get the respective variant.
/// Call `index` to determine the index for a variant.
///
/// This struct must be initialized at comptime, but it can be used
/// at any time.
Expand Down

0 comments on commit 9958d04

Please sign in to comment.