Fix doctest trying to compile text diagram

This commit is contained in:
0hypercube 2023-11-26 17:46:57 +00:00
parent 8055e85f38
commit 82908f8185
1 changed files with 6 additions and 4 deletions

View File

@ -2,10 +2,11 @@ use core::marker::PhantomData;
use crate::{Node, NodeMut}; use crate::{Node, NodeMut};
// This is how we can generically define composition of two nodes. /// This is how we can generically define composition of two nodes.
// This is done generically as shown: <https://files.keavon.com/-/SurprisedGaseousAnhinga/capture.png> /// This is done generically as shown: <https://files.keavon.com/-/SurprisedGaseousAnhinga/capture.png>
// A concrete example: <https://files.keavon.com/-/ExcitableGoldRay/capture.png> /// A concrete example: <https://files.keavon.com/-/ExcitableGoldRay/capture.png>
// And showing the direction of data flow: <https://files.keavon.com/-/SoreShimmeringElephantseal/capture.png> /// And showing the direction of data flow: <https://files.keavon.com/-/SoreShimmeringElephantseal/capture.png>
/// ```text
/// ┌────────────────┐ /// ┌────────────────┐
/// T │ │ U /// T │ │ U
/// ───────────►│ Compose Node ├───────────► /// ───────────►│ Compose Node ├───────────►
@ -21,6 +22,7 @@ use crate::{Node, NodeMut};
/// │ Second ├─────────────►│ │ /// │ Second ├─────────────►│ │
/// │ │ └───────────┘ /// │ │ └───────────┘
/// └──────────┘ /// └──────────┘
/// ```
#[derive(Clone, Copy)] #[derive(Clone, Copy)]
pub struct ComposeNode<First, Second, I> { pub struct ComposeNode<First, Second, I> {
first: First, first: First,