Display function return types (#4643)

This commit is contained in:
Julian 2024-08-29 20:05:53 +02:00 committed by GitHub
parent ba5c1436ff
commit 1e6a3a8f9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}")?