From e111de2b7545456fbbf843fafecaf2819d348f5a Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Tue, 8 Jan 2013 11:04:19 +0100 Subject: [PATCH] Bug 827238 - Fix an out-of-date comment in js/public/HashTable.h r=luke --- js/public/HashTable.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/public/HashTable.h b/js/public/HashTable.h index 9e67769fcc2a..296bb7d94fbc 100644 --- a/js/public/HashTable.h +++ b/js/public/HashTable.h @@ -721,11 +721,9 @@ class HashTable : private AllocPolicy // A Range whose lifetime delimits a mutating enumeration of a hash table. // Since rehashing when elements were removed during enumeration would be - // bad, it is postponed until |endEnumeration()| is called. If - // |endEnumeration()| is not called before an Enum's constructor, it will - // be called automatically. Since |endEnumeration()| touches the hash - // table, the user must ensure that the hash table is still alive when this - // happens. + // bad, it is postponed until the Enum is destructed. Since the Enum's + // destructor touches the hash table, the user must ensure that the hash + // table is still alive when the destructor runs. class Enum : public Range { friend class HashTable;