diff --git a/crates/wit-smith/src/generate.rs b/crates/wit-smith/src/generate.rs index 673e94bfa6..ac94651b3c 100644 --- a/crates/wit-smith/src/generate.rs +++ b/crates/wit-smith/src/generate.rs @@ -514,9 +514,9 @@ impl<'a> InterfaceGenerator<'a> { parts.push(part); } Item::Static => { - let mut part = format!("static %"); + let mut part = format!("%"); part.push_str(&gen_unique_name(u, &mut names)?); - part.push_str(": "); + part.push_str(": static "); self.gen_func_sig(u, &mut part, false)?; parts.push(part); }