Skip to content

Commit 24ec0f6

Browse files
gsoleilhacararslan
authored andcommitted
fix typo in Base.digits (#25946)
Also adds depreciations for digits forgotten by #25647
1 parent 3451461 commit 24ec0f6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

base/deprecated.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,8 @@ end
13431343
@deprecate countlines(x, eol) countlines(x, eol = eol)
13441344
@deprecate PipeBuffer(data, maxsize) PipeBuffer(data, maxsize = maxsize)
13451345
@deprecate unsafe_wrap(T, pointer, dims, own) unsafe_wrap(T, pointer, dims, own = own)
1346+
@deprecate digits(n, base, pad) digits(n, base = base, pad = pad)
1347+
@deprecate digits(T, n, base, pad) digits(T, n, base = base, pad = pad)
13461348

13471349
@deprecate print_with_color(color, args...; kwargs...) printstyled(args...; kwargs..., color=color)
13481350

base/intfuncs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ julia> digits(10, base = 2, pad = 6)
786786
0
787787
```
788788
"""
789-
digits(n::Integer; base = base::Integer = 10, pad = pad::Integer = 1) =
789+
digits(n::Integer; base::Integer = 10, pad::Integer = 1) =
790790
digits(typeof(base), n, base = base, pad = pad)
791791

792792
function digits(T::Type{<:Integer}, n::Integer; base::Integer = 10, pad::Integer = 1)

0 commit comments

Comments
 (0)