Skip to content

Commit

Permalink
docs: Fix documentation of ValidationError::ConstTypeError (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q authored Jun 26, 2024
1 parent c05edd3 commit 70e0b87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hugr-core/src/hugr/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,17 @@ pub enum ValidationError {
/// Error in a node signature
#[error("Error in signature of node {node:?}: {cause}")]
SignatureError { node: Node, cause: SignatureError },
/// Error in a [CustomOp] serialized as an [Opaque]
/// Error in a [CustomOp] serialized as an [Opaque].
///
/// [CustomOp]: crate::ops::CustomOp
/// [Opaque]: crate::ops::CustomOp::Opaque
#[error(transparent)]
CustomOpError(#[from] CustomOpError),
/// TODO
/// A [Const] contained a [Value] of unexpected [Type].
///
/// [Const]: crate::ops::Const
/// [Value]: crate::ops::Value
/// [Type]: crate::types::Type
#[error(transparent)]
ConstTypeError(#[from] ConstTypeError),
}
Expand Down

0 comments on commit 70e0b87

Please sign in to comment.