Skip to content

Commit

Permalink
change back an eachindex to 1:length where it made more sense (Ju…
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Jul 23, 2024
1 parent fe597c1 commit fc17b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ end
Return an array with element type `T` (default `Int`) of the digits of `n` in the given
base, optionally padded with zeros to a specified size. More significant digits are at
higher indices, such that `n == sum(digits[k]*base^(k-1) for k in eachindex(digits))`.
higher indices, such that `n == sum(digits[k]*base^(k-1) for k in 1:length(digits))`.
See also [`ndigits`](@ref), [`digits!`](@ref),
and for base 2 also [`bitstring`](@ref), [`count_ones`](@ref).
Expand Down

0 comments on commit fc17b14

Please sign in to comment.