From a14ae4505e23bf2fc504d84c8821657a0afc66c9 Mon Sep 17 00:00:00 2001 From: Mark Koch Date: Thu, 11 Jan 2024 11:01:50 +0000 Subject: [PATCH] Fix comments --- guppy/hugr/hugr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guppy/hugr/hugr.py b/guppy/hugr/hugr.py index a643d065..bbd81588 100644 --- a/guppy/hugr/hugr.py +++ b/guppy/hugr/hugr.py @@ -708,14 +708,14 @@ def insert_order_edges(self) -> "Hugr": continue if src.node.parent != tgt.node.parent: - # Walk up the hierarchy from the src until we hit a node at the same - # level as tgt + # Walk up the hierarchy from the tgt until we hit a node at the same + # level as src node = tgt.node while node.parent != src.node.parent: if node.parent is None: raise ValueError("Invalid non-local edge!") node = node.parent - # Edge order edge to make sure that the src is executed first + # Add order edge to make sure that the src is executed first self.add_order_edge(src.node, node) return self