Skip to content

Commit

Permalink
Update test for unused-function-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
savq committed Dec 18, 2023
1 parent 016b34f commit a2e767f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang/best-practice/unused-function-parameter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function foo(x)
y
end

#ok: unused-function-parameter
#todook: unused-function-parameter
function foo(x)
x = 3
x = 3 # TODO: Mutating parameters should count as using them
end

#ok: unused-function-parameter
Expand All @@ -25,4 +25,4 @@ function foo(x)
y = x
return y
end


0 comments on commit a2e767f

Please sign in to comment.