From e890d400933fea08286792147d5b4dd231fb751b Mon Sep 17 00:00:00 2001 From: Asuna Date: Mon, 22 Dec 2025 06:36:12 +0800 Subject: [PATCH] Fix a typo in doc of `AllocRingBuffer::with_capacity` --- src/with_alloc/alloc_ringbuffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/with_alloc/alloc_ringbuffer.rs b/src/with_alloc/alloc_ringbuffer.rs index c64ecbd..00ae865 100644 --- a/src/with_alloc/alloc_ringbuffer.rs +++ b/src/with_alloc/alloc_ringbuffer.rs @@ -306,7 +306,7 @@ impl AllocRingBuffer { } #[inline] - /// Alias of [`with_capacity`](AllocRingBuffer::new). + /// Alias of [`new`](AllocRingBuffer::new). #[must_use] #[deprecated = "alias of new"] pub fn with_capacity(cap: usize) -> Self {