Update function_input.rs

This commit is contained in:
Max Bruce 2021-02-04 14:23:51 -08:00 committed by GitHub
parent 81e758466d
commit df8ecfc299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ impl<'ast> From<GrammarFunctionInput<'ast>> for FunctionInputVariable {
impl FunctionInputVariable {
fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
// mut var: bool
if self.mutable {
if self.const_ {
write!(f, "const ")?;
}
if self.mutable {