summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/attributes/mod.rs2
-rw-r--r--src/lib.rs9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/attributes/mod.rs b/src/attributes/mod.rs
index 3219a50..dafbf4a 100644
--- a/src/attributes/mod.rs
+++ b/src/attributes/mod.rs
@@ -1279,7 +1279,7 @@ pub trait NodeAttributes<'a> {
/// Sets x and y margins of canvas, in inches.
/// Both margins are set equal to the given value.
- /// See [`crate::NodeAttributes::margin_point`]
+ /// See [`crate::attributes::NodeAttributes::margin_point`]
fn margin(&mut self, margin: f32) -> &mut Self {
self.margin_point(Point::new_2d(margin, margin))
}
diff --git a/src/lib.rs b/src/lib.rs
index 05ccfbe..f36f9b5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,8 +3,8 @@
//! Dotavious provides bindings to generate [DOT](https://graphviz.org/doc/info/lang.html)
//! code used by the Graphviz (http://graphviz.org/) for visualising graphs.
-//! Provides strongly typed attribute functions and offers almost complete
-//! coverage of all Graphviz attributes and syntax
+//! It also provides strongly typed attribute functions and offers almost complete
+//! coverage of all Graphviz attributes and syntax.
//!
//! # Examples
//!
@@ -46,8 +46,9 @@
//!
//! ```rust
//! use dotavious::attributes::{
-//! AttributeText, Color, CompassPoint, EdgeAttributes, EdgeStyle, GraphAttributeStatementBuilder,
-//! GraphAttributes, NodeAttributes, NodeStyle, PortPosition, RankDir, Shape,
+//! AttributeText, Color, CompassPoint, EdgeAttributes, EdgeStyle,
+//! GraphAttributeStatementBuilder, GraphAttributes, NodeAttributes,
+//! NodeStyle, PortPosition, RankDir, Shape,
//! };
//! use dotavious::{
//! Dot, Edge, EdgeAttributeStatementBuilder, EdgeBuilder, Graph,