Skip to content

Commit

Permalink
vrepl: replace enum field name '@none' with 'none'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Oct 10, 2024
1 parent a3f6fd5 commit a6476ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/tools/vrepl.v
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const possible_statement_patterns = [
]

enum FnType {
@none
none
void
fn_type
}
Expand Down Expand Up @@ -183,7 +183,7 @@ fn (r &Repl) function_call(line string) (bool, FnType) {
if line.contains(':=') {
// an assignment to a variable:
// `z := abc()`
return false, FnType.@none
return false, FnType.none
}

// Check if it is a Vlib call
Expand All @@ -192,7 +192,7 @@ fn (r &Repl) function_call(line string) (bool, FnType) {
fntype := r.check_fn_type_kind(line)
return true, fntype
}
return false, FnType.@none
return false, FnType.none
}

// TODO(vincenzopalazzo) Remove this fancy check and add a regex
Expand Down

0 comments on commit a6476ea

Please sign in to comment.