# HG changeset patch # User Mike Becker # Date 1764020358 -3600 # Node ID 0dc866c7863b47e1685fc0a73b97c2e8d09ee488 # Parent 3985ca9b18e04f3aa9c0654a3a544ea9489ea842 add the note to the docstrings that tree iterator/visitor counter include the currently visited node diff -r 3985ca9b18e0 -r 0dc866c7863b src/cx/tree.h --- a/src/cx/tree.h Mon Nov 24 22:38:50 2025 +0100 +++ b/src/cx/tree.h Mon Nov 24 22:39:18 2025 +0100 @@ -88,6 +88,7 @@ ptrdiff_t loc_next; /** * The total number of distinct nodes that have been passed so far. + * This includes the current node. */ size_t counter; /** @@ -185,6 +186,7 @@ ptrdiff_t loc_next; /** * The total number of distinct nodes that have been passed so far. + * This includes the currently visited node. */ size_t counter; /**