Skip to content

Commit 5b097b0

Browse files
committed
review: fix doc comment typo
this linked to the wrong method. this is now fixed. Signed-off-by: katelyn martin <[email protected]>
1 parent 708c1ec commit 5b097b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics/family.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ impl<S: Clone + std::hash::Hash + Eq, M, C: MetricConstructor<M>> Family<S, M, C
261261
/// ```
262262
///
263263
/// NB: This method can cause deadlocks if multiple metrics within this family are read at
264-
/// once. Use [`Family::get_or_create()`] if you would like to avoid this by cloning the
264+
/// once. Use [`Family::get_or_create_clone()`] if you would like to avoid this by cloning the
265265
/// metric `M`.
266266
pub fn get_or_create(&self, label_set: &S) -> MappedRwLockReadGuard<M> {
267267
if let Some(metric) = self.get(label_set) {

0 commit comments

Comments
 (0)