Skip to content

Commit

Permalink
Update crates/sema/src/ast_passes.rs
Browse files Browse the repository at this point in the history
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
  • Loading branch information
TilakMaddy and DaniPopes authored Dec 10, 2024
1 parent 8728416 commit 5207947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sema/src/ast_passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl<'ast> Visit<'ast> for AstValidator<'_, 'ast> {
self.dcx()
.err("no visibility specified")
.span(self.span)
.help(format!("do you intend to add {suggested_visibility}?"))
.help(format!("add `{suggested_visibility}` to the declaration"))
.emit();
}
}
Expand Down

0 comments on commit 5207947

Please sign in to comment.