From 33243cb9fb13dfc1ea9a2b1f3dd0ea2a1a0a6b42 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Wed, 28 Jun 2023 12:38:37 +0100 Subject: [PATCH] Fix comment wrongly referring to vector. Co-authored-by: Jonas Platte --- crates/matrix-sdk-common/src/ring_buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-common/src/ring_buffer.rs b/crates/matrix-sdk-common/src/ring_buffer.rs index 49bdee7da..6f59f8f74 100644 --- a/crates/matrix-sdk-common/src/ring_buffer.rs +++ b/crates/matrix-sdk-common/src/ring_buffer.rs @@ -81,7 +81,7 @@ impl RingBuffer { self.inner.clear(); } - /// Returns the total number of elements the vector can hold + /// Returns the total number of elements the `RingBuffer` can hold. pub fn capacity(&self) -> usize { self.inner.capacity() }