Skip to content

Commit dabeb03

Browse files
authored
Docs typos (#46)
1 parent 621f3e9 commit dabeb03

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "safety-net"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66

src/graph.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ where
2727

2828
/// A table that maps nets to the circuit nodes they drive
2929
pub struct FanOutTable<'a, I: Instantiable> {
30-
// A reference to the underlying netlist
30+
/// A reference to the underlying netlist
3131
_netlist: &'a Netlist<I>,
32-
// Maps a net to the list of nodes it drives
32+
/// Maps a net to the list of nodes it drives
3333
net_fan_out: HashMap<Net, Vec<NetRef<I>>>,
3434
/// Maps a node to the list of nodes it drives
3535
node_fan_out: HashMap<NetRef<I>, Vec<NetRef<I>>>,
@@ -114,9 +114,9 @@ where
114114
/// An simple example to analyze the logic levels of a netlist.
115115
/// This analysis checks for cycles, but it doesn't check for registers.
116116
pub struct SimpleCombDepth<'a, I: Instantiable> {
117-
// A reference to the underlying netlist
117+
/// A reference to the underlying netlist
118118
_netlist: &'a Netlist<I>,
119-
// Maps a net to its logic level as a DAG
119+
/// Maps a net to its logic level as a DAG
120120
comb_depth: HashMap<NetRef<I>, usize>,
121121
/// The maximum depth of the circuit
122122
max_depth: usize,

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
An experimental library for representing circuit netlists for EDA tool development.
88
Take a look at some [examples](https://github.com/matth2k/safety-net/tree/main/examples) and the [documentation](https://matth2k.github.io/safety-net/).
99
10+
The most important API is the [Netlist](https://matth2k.github.io/safety-net/safety_net/netlist/struct.Netlist.html) struct.
11+
1012
*/
1113
#![doc = "## Simple Example\n```"]
1214
#![doc = include_str!("../examples/simple.rs")]

src/netlist.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,6 @@ where
12711271
}
12721272

12731273
/// Set an added object as a top-level output.
1274-
/// Panics if `net`` is a multi-output node.
12751274
pub fn expose_net_with_name(&self, net: DrivenNet<I>, name: Identifier) -> DrivenNet<I> {
12761275
let mut outputs = self.outputs.borrow_mut();
12771276
outputs.insert(net.get_operand(), net.as_net().with_name(name));

0 commit comments

Comments
 (0)