Skip to content

Commit

Permalink
DOC: format inline code in Markdown, within docstring
Browse files Browse the repository at this point in the history
and rephrase.
  • Loading branch information
johnyf committed Dec 8, 2023
1 parent baa2351 commit 5989644
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dd/cudd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,8 @@ cpdef count_nodes(functions):
Sharing is taken into account.
@type functions: `list` of `Function`
@rtype: int
@rtype:
`int`
"""
cdef DdNode **x
cdef Function f
Expand Down
7 changes: 4 additions & 3 deletions dd/dddmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def t_error(self, t):
def build(self, debug=False, debuglog=None, **kwargs):
"""Create a lexer.
@param kwargs: Same arguments as C{{ply.lex.lex}}:
@param kwargs:
Same arguments as `ply.lex.lex`:
- except for C{{module}} (fixed to C{{self}})
- C{{debuglog}} defaults to the logger C{{"{logger}"}}.
- except for `module` (fixed to `self`)
- `debuglog` defaults to `logger`.
"""
if debug and debuglog is None:
debuglog = logging.getLogger(LEX_LOG)
Expand Down
3 changes: 2 additions & 1 deletion dd/mdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def find_or_add(self, i, *nodes):
"""Return node at level `i` with successors in `nodes`.
@param i: level in `range(len(vars))`
@type i: int
@type i:
`int`
"""
if not (0 <= i < len(self.vars)):
raise ValueError(i)
Expand Down

0 comments on commit 5989644

Please sign in to comment.