Skip to content

Commit

Permalink
using eachindex instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMikkelsen committed Oct 29, 2024
1 parent bd661b9 commit 9345719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/PionNucleon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ grid_points = range(rmin,rmax,3000)

Φ = zeros(length(grid_points), length(coordinates))

for i in 1:length(coordinates)
for i in eachindex(coordinates)
local ϕ = zeros(length(grid_points))
ϕ_sum = zeros(length(grid_points))
rs = coordinates[i]
Expand Down

0 comments on commit 9345719

Please sign in to comment.