Skip to content

Commit a648a79

Browse files
committed
Comment + PR link
1 parent 3febc30 commit a648a79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/multiportgraph.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ pub(crate) mod test {
875875
}
876876

877877
#[test]
878+
/// <https://github.com/CQCL/portgraph/pull/191>
878879
fn remove_ports() {
879880
let mut g = MultiPortGraph::new();
880881
let n = g.add_node(2, 2);
@@ -886,7 +887,8 @@ pub(crate) mod test {
886887
g.link_nodes(n, 0, o0, 0).unwrap();
887888
g.link_nodes(n, 0, o1, 0).unwrap();
888889
g.link_nodes(n, 1, o0, 0).unwrap();
889-
// This line was panicking: the second InPort gets deleted, but reads the multiport-status of what is now the first outport.
890+
// This line was panicking: the second InPort gets deleted, but used to read the multiport-status
891+
// of what was the second InPort but had become the first OutPort.
890892
g.set_num_ports(n, 1, 2, |_, _| {});
891893
}
892894
}

0 commit comments

Comments
 (0)