add the note to the docstrings that tree iterator/visitor counter include the currently visited node

Mon, 24 Nov 2025 22:39:18 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 24 Nov 2025 22:39:18 +0100
changeset 1512
0dc866c7863b
parent 1511
3985ca9b18e0
child 1513
4d641c6a2f82

add the note to the docstrings that tree iterator/visitor counter include the currently visited node

src/cx/tree.h file | annotate | diff | comparison | revisions
--- 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;
     /**

mercurial