summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/attributes/color.rs2
-rw-r--r--src/attributes/mod.rs4
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<f32>)` 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.