Fix comment wrongly referring to vector.

Co-authored-by: Jonas Platte <jplatte@matrix.org>
This commit is contained in:
Andy Balaam
2023-06-28 12:38:37 +01:00
committed by Damir Jelić
parent 785eccc004
commit 33243cb9fb

View File

@@ -81,7 +81,7 @@ impl<T> RingBuffer<T> {
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()
}