Skip to content

Commit

Permalink
fix formatting fn with mut refenrence para 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jun 20, 2024
1 parent 7dbe27c commit b7935ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vlib/v/ast/str.v
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ fn (t &Table) stringify_fn_after_name(node &FnDecl, mut f strings.Builder, cur_m
param.typ
}
mut s := t.type_to_str(param_typ.clear_flag(.shared_f))
if param.is_mut {
if s.starts_with('&') && ((!param_sym.is_number() && param_sym.kind != .bool)
|| node.language != .v) {
s = s[1..]
}
}
// if param.is_mut {
// if s.starts_with('&') && ((!param_sym.is_number() && param_sym.kind != .bool)
// || node.language != .v) {
// s = s[1..]
// }
// }
s = util.no_cur_mod(s, cur_mod)
s = shorten_full_name_based_on_aliases(s, m2a)
if should_add_type {
Expand Down

0 comments on commit b7935ae

Please sign in to comment.