Skip to content

Commit b5d5e9e

Browse files
committed
docs
1 parent 71f4106 commit b5d5e9e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

hugr-core/src/hugr/validate.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -709,17 +709,11 @@ pub enum ValidationError<N: HugrNode> {
709709
/// (Multiple [`FuncDecl`](crate::ops::FuncDecl)s with the same signature are allowed)
710710
#[error("FuncDefn is exported under same name {link_name} as earlier node {:?}", children[0])]
711711
DuplicateLinkName {
712-
/// The `link_name` of a `FuncDecl` or [`FuncDefn`]
712+
/// The `link_name` of a `FuncDecl` or `FuncDefn`
713713
link_name: String,
714714
/// Two nodes using that `link_name`
715715
children: [N; 2],
716716
},
717-
/// A [`FuncDecl`], or [`FuncDefn`] with a [link_name],
718-
/// was neither root nor child of a [`Module`] root
719-
///
720-
/// [`FuncDecl`]: crate::ops::FuncDecl
721-
/// [link_name]: FuncDefn::link_name
722-
/// [`Module`]: crate::ops::Module
723717
/// The children graph has invalid edges.
724718
#[error(
725719
"An operation {parent_optype} contains invalid edges between its children: {source}. In parent {parent}, edge from {from:?} port {from_port:?} to {to:?} port {to_port:?}",

hugr-model/src/v0/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ pub const CORE_META_DESCRIPTION: &str = "core.meta.description";
249249
pub const CORE_ENTRYPOINT: &str = "core.entrypoint";
250250

251251
/// Metadata to tag the name of a function (typically human readable; not for linking),
252-
/// i.e. [crate::ops::FuncDefn::func_name]
252+
/// i.e. `hugr-core::ops::FuncDefn::func_name`
253253
///
254254
/// - **Result:** `core.meta` (ALAN?)
255255
pub const CORE_META_FUNCNAME: &str = "core.meta.func_name";

hugr-passes/src/dead_funcs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl<H: HugrMut<Node = Node>> ComposablePass<H> for RemoveDeadFuncsPass {
137137
/// * If any node in `entry_points` is not a [`FuncDefn`]
138138
///
139139
/// [`Call`]: hugr_core::ops::OpType::Call
140+
/// [`FuncDefn`]: hugr_core::ops::OpType::FuncDefn
140141
/// [link_name]: hugr_core::ops::FuncDefn::link_name
141142
/// [`LoadFunction`]: hugr_core::ops::OpType::LoadFunction
142143
/// [`Module`]: hugr_core::ops::OpType::Module

0 commit comments

Comments
 (0)