diff options
author | seancarroll <seanc28@gmail.com> | 2021-01-16 15:14:16 -0600 |
---|---|---|
committer | seancarroll <seanc28@gmail.com> | 2021-01-16 15:14:16 -0600 |
commit | 956860b32114a0ca6d8d9af15175514f6a94e34a (patch) | |
tree | e702409117a469496ab99753c087cf5a2664cac8 | |
parent | e33b0b90e3a683a6c0431a50a8eb293aa3c3e326 (diff) | |
download | dotavious-956860b32114a0ca6d8d9af15175514f6a94e34a.zip |
fix some docs
-rw-r--r-- | src/attributes/mod.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 9 |
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)) } @@ -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, |