From f611935e9a4ba0e0cfa23169563a477e87741cca Mon Sep 17 00:00:00 2001 From: Jonah Cohen Date: Thu, 14 Aug 2014 14:56:11 -0700 Subject: [PATCH] Fix autovector iterator increment/decrement comments Summary: The prefix and postfix operators were mixed up in the autovector class. Test Plan: Inspection Reviewers: sdong, kailiu Reviewed By: kailiu Differential Revision: https://reviews.facebook.net/D21873 --- util/autovector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/autovector.h b/util/autovector.h index b57cedfc1b8..e143c46cbcd 100644 --- a/util/autovector.h +++ b/util/autovector.h @@ -67,26 +67,26 @@ class autovector { iterator_impl& operator=(const iterator_impl&) = default; // -- Advancement - // iterator++ + // ++iterator self_type& operator++() { ++index_; return *this; } - // ++iterator + // iterator++ self_type operator++(int) { auto old = *this; ++index_; return old; } - // iterator-- + // --iterator self_type& operator--() { --index_; return *this; } - // --iterator + // iterator-- self_type operator--(int) { auto old = *this; --index_;