diff options
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 13f18f729..f19125811 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -341,9 +341,8 @@ class PrettyPrint: ) elif isinstance(item, Function): buffer.append( - "{prefix}- function {name}".format( - prefix=prefix, - name=item.Name, + "{prefix}- function {name} return {returnType!s}".format( + prefix=prefix, name=item.Name, returnType=item.ReturnType ) ) elif isinstance(item, Procedure): |