Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Apr 14, 2024
1 parent 32715ed commit c3b3317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ fn (mut c Checker) spawn_expr(mut node ast.SpawnExpr) ast.Type {
node.call_expr.or_block.pos)
}
// Make sure there are no mutable arguments
for mut arg in node.call_expr.args {
for arg in node.call_expr.args {
if arg.is_mut && !arg.typ.is_ptr() {
if c.table.final_sym(arg.typ).kind == .array {
// allow mutable []array to be passed as mut
Expand Down

0 comments on commit c3b3317

Please sign in to comment.