Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang committed Jun 18, 2024
1 parent 40fce55 commit a88ac82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/move/move-compiler/src/parser/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ fn parse_visibility(context: &mut Context) -> Result<Visibility, Box<Diagnostic>
None => Visibility::Public(loc),
Some((Tok::Script, _)) => Visibility::Script(loc),
Some((Tok::Friend, _)) => Visibility::Friend(loc),
Some((Tok::Identifier, content)) if content == "package" => Visibility::Package(loc),
Some((Tok::Identifier, "package")) => Visibility::Package(loc),
_ => {
let msg = format!(
"Invalid visibility modifier. Consider removing it or using '{}', '{}', or '{}'",
Expand Down

0 comments on commit a88ac82

Please sign in to comment.