From 4d924969fdd445a3dc16938d8968c080cab2ff31 Mon Sep 17 00:00:00 2001 From: seancarroll Date: Mon, 22 Mar 2021 19:57:23 -0500 Subject: some minor tweaks --- src/attributes/color.rs | 2 +- src/attributes/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/attributes/color.rs b/src/attributes/color.rs index 92a26eb..029707c 100644 --- a/src/attributes/color.rs +++ b/src/attributes/color.rs @@ -91,7 +91,7 @@ impl<'a> DotString<'a> for ColorList<'a> { } } -/// Convert an element like `(i, j)` into a WeightedColor +/// Convert an element like `(Color, Option)` into a WeightedColor pub trait IntoWeightedColor<'a> { fn into_weighted_color(self) -> WeightedColor<'a>; } diff --git a/src/attributes/mod.rs b/src/attributes/mod.rs index 8f50c56..0cdfa99 100644 --- a/src/attributes/mod.rs +++ b/src/attributes/mod.rs @@ -1556,8 +1556,8 @@ pub trait EdgeAttributes<'a> { /// Style of arrowhead on the tail node of an edge. /// This will only appear if the dir attribute is back or both. - fn arrowtail(&mut self, arrowtail: ArrowType) -> &mut Self { - self.add_attribute("arrowtail", AttributeText::from(arrowtail)) + fn arrow_tail(&mut self, arrow_tail: ArrowType) -> &mut Self { + self.add_attribute("arrowtail", AttributeText::from(arrow_tail)) } /// Classnames to attach to the edge’s SVG element. -- cgit v1.2.3