Display function return types (#4643)
This commit is contained in:
parent
ba5c1436ff
commit
1e6a3a8f9b
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ impl fmt::Display for DefineFunctionStatement {
|
|||
write!(f, "${name}: {kind}")?;
|
||||
}
|
||||
f.write_str(") ")?;
|
||||
if let Some(ref v) = self.returns {
|
||||
write!(f, "-> {v} ")?;
|
||||
}
|
||||
Display::fmt(&self.block, f)?;
|
||||
if let Some(ref v) = self.comment {
|
||||
write!(f, " COMMENT {v}")?
|
||||
|
|
Loading…
Reference in a new issue