Skip to content

Commit

Permalink
Merge pull request #5 from JuliaComputing/savq-test
Browse files Browse the repository at this point in the history
Update test for unused-function-parameter
  • Loading branch information
savq authored Dec 19, 2023
2 parents 016b34f + a2e767f commit 32a712b
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 32a712b

Please sign in to comment.