Skip to content

Commit 229181a

Browse files
authored
digits docstring no need to allocate (#36676)
`sum` works without allocating => this speeds up the computation
1 parent bd52a95 commit 229181a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/intfuncs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ bitstring(x::Union{Int128,UInt128}) = string(reinterpret(UInt128,x),
737737
738738
Return an array with element type `T` (default `Int`) of the digits of `n` in the given
739739
base, optionally padded with zeros to a specified size. More significant digits are at
740-
higher indices, such that `n == sum([digits[k]*base^(k-1) for k=1:length(digits)])`.
740+
higher indices, such that `n == sum(digits[k]*base^(k-1) for k=1:length(digits))`.
741741
742742
# Examples
743743
```jldoctest

0 commit comments

Comments
 (0)