Skip to content

Commit 8720174

Browse files
author
Jorge Aparicio
committed
libgraphviz: use tuple indexing
1 parent 778be74 commit 8720174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
//! impl<'a> dot::Labeller<'a, Nd<'a>, Ed<'a>> for Graph {
219219
//! fn graph_id(&'a self) -> dot::Id<'a> { dot::Id::new("example3").unwrap() }
220220
//! fn node_id(&'a self, n: &Nd<'a>) -> dot::Id<'a> {
221-
//! dot::Id::new(format!("N{}", n.val0())).unwrap()
221+
//! dot::Id::new(format!("N{}", n.0)).unwrap()
222222
//! }
223223
//! fn node_label<'a>(&'a self, n: &Nd<'a>) -> dot::LabelText<'a> {
224224
//! let &(i, _) = n;

0 commit comments

Comments
 (0)