diff --git a/src/util/dlist.h b/src/util/dlist.h index 3d9efacd5..c7b2139a4 100644 --- a/src/util/dlist.h +++ b/src/util/dlist.h @@ -160,8 +160,8 @@ public: const T* slow = static_cast(this); const T* fast = m_next; bool looped = false; - // m_next of each node should point back to m_prev of the following node, - // and m_prev of each node should point forward to m_next of the preceding node. + // m_next of each node should point back to m_prev of the following node, + // and m_prev of each node should point forward to m_next of the preceding node. while (slow != fast) { if (fast->m_prev->m_next != fast || fast->m_next->m_prev != fast) { return false; @@ -255,4 +255,4 @@ template < typename T dll_iterator end(T const& list) { return dll_iterator::mk_end(&list); -} \ No newline at end of file +}