Skip to content

Commit

Permalink
docs: fix bad grammar (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q authored Jun 18, 2024
1 parent d10f6b8 commit 1f1c633
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ where
/// Panics if the node is not valid in the `Hugr` or if it's `get_optype` is
/// not an `OT`.
///
/// Note that while we do check that the type of the node's `get_optype`, we
/// do not verify it is actually equal to `ot`.
/// Note that while we do check the type of the node's `get_optype`, we
/// do not verify that it is actually equal to `ot`.
pub fn new(hugr: &'c H, node: Node, #[allow(unused)] ot: &OT) -> Self {
assert!(hugr.valid_node(node));
assert!(TryInto::<&'c OT>::try_into(hugr.get_optype(node)).is_ok());
Expand Down Expand Up @@ -108,8 +108,8 @@ impl<'c, H: HugrView + ?Sized> FatNode<'c, OpType, H> {
/// Panics if the node is not valid in the `Hugr` or if its `get_optype` is
/// not an `OT`.
///
/// Note that while we do check that the type of the node's `get_optype`, we
/// do not verify it is actually equal to `ot`.
/// Note that while we do check the type of the node's `get_optype`, we
/// do not verify that it is actually equal to `ot`.
pub fn into_ot<OT: PartialEq + 'c>(self, ot: &OT) -> FatNode<'c, OT, H>
where
for<'a> &'a OpType: TryInto<&'a OT>,
Expand Down

0 comments on commit 1f1c633

Please sign in to comment.