Skip to content

Commit

Permalink
docs: reword type propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jul 1, 2024
1 parent f7d2ead commit 1cb6ec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hugr-py/src/hugr/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class Cfg(ParentBuilder[ops.CFG]):
being a :class:`CFG <hugr.ops.CFG>`.
Args:
input_types: The input types for the CFG, outputs are propagated through
the graph to the exit block.
input_types: The input types for the CFG, outputs are computed
by propagating types through the control flow graph to the exit block.
Examples:
>>> cfg = Cfg(tys.Bool, tys.Unit)
Expand Down
2 changes: 1 addition & 1 deletion hugr-py/src/hugr/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Function(_DfBase[ops.FuncDefn]):
Args:
name: The name of the function.
input_types: The input types for the function (output types are
propagated through the graph to the output).
computated by propagating types from input node through the graph).
type_params: The type parameters for the function, if polymorphic.
Examples:
Expand Down

0 comments on commit 1cb6ec3

Please sign in to comment.