Skip to content

Commit

Permalink
add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dopsi committed Aug 19, 2019
1 parent c377245 commit 40ae49c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ impl Circuit {
/// Returns `true` as long as at least one element's output value has changed in the circuit.
///
/// ```
/// use logical::{Circuit, Signal};
/// use logical::models::gates::OrGate;
///
/// let mut circuit = Circuit::default();
/// /* Configure updaters */
///
Expand All @@ -32,7 +35,10 @@ impl Circuit {
/// Add an [`Updateable`](Updateable) to the `Circuit`
///
/// ```
/// let mut sig = Signal::default();
/// use logical::{Circuit, Signal, Ieee1164};
/// use logical::models::gates::OrGate;
///
/// let mut sig: logical::Signal<Ieee1164> = Signal::default();
/// // Configure signal here
///
/// let or = OrGate::default(); // Gates do not need to be mutable
Expand Down

0 comments on commit 40ae49c

Please sign in to comment.