From 21cedfb13ed74b85b2a58863aaf0e8bd8af2d461 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 3 Dec 2024 22:58:15 -0500 Subject: [PATCH] bytevector: rename the argument to operator[] to be more descriptive Signed-off-by: Zygo Blaxell --- lib/bytevector.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bytevector.cc b/lib/bytevector.cc index 9cbefd7..df2b430 100644 --- a/lib/bytevector.cc +++ b/lib/bytevector.cc @@ -44,10 +44,10 @@ namespace crucible { } ByteVector::value_type& - ByteVector::operator[](size_t size) const + ByteVector::operator[](size_t index) const { unique_lock lock(m_mutex); - return m_ptr.get()[size]; + return m_ptr.get()[index]; } ByteVector::ByteVector(const ByteVector &that)