Skip to content

Commit

Permalink
review: fix doc comment typo
Browse files Browse the repository at this point in the history
this linked to the wrong method. this is now fixed.

Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Feb 9, 2025
1 parent 708c1ec commit 5b097b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics/family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl<S: Clone + std::hash::Hash + Eq, M, C: MetricConstructor<M>> Family<S, M, C
/// ```
///
/// NB: This method can cause deadlocks if multiple metrics within this family are read at
/// once. Use [`Family::get_or_create()`] if you would like to avoid this by cloning the
/// once. Use [`Family::get_or_create_clone()`] if you would like to avoid this by cloning the
/// metric `M`.
pub fn get_or_create(&self, label_set: &S) -> MappedRwLockReadGuard<M> {
if let Some(metric) = self.get(label_set) {
Expand Down

0 comments on commit 5b097b0

Please sign in to comment.