diff --git a/sphinx/environment.py b/sphinx/environment.py index 5caa09eb8..4f9c30c6c 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -1373,7 +1373,7 @@ class BuildEnvironment: 'iscurrent' not in subnode.parent): subnode.parent.remove(subnode) else: - # recurse on visible children + # recurse on visible children _toctree_prune(subnode, depth+1, maxdepth) def _toctree_add_classes(node, depth):