Skip to content

Commit

Permalink
fix typo in Base.digits (#25946)
Browse files Browse the repository at this point in the history
Also adds depreciations for digits forgotten by #25647
  • Loading branch information
gsoleilhac authored and ararslan committed Feb 8, 2018
1 parent 3451461 commit 24ec0f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,8 @@ end
@deprecate countlines(x, eol) countlines(x, eol = eol)
@deprecate PipeBuffer(data, maxsize) PipeBuffer(data, maxsize = maxsize)
@deprecate unsafe_wrap(T, pointer, dims, own) unsafe_wrap(T, pointer, dims, own = own)
@deprecate digits(n, base, pad) digits(n, base = base, pad = pad)
@deprecate digits(T, n, base, pad) digits(T, n, base = base, pad = pad)

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

Expand Down
2 changes: 1 addition & 1 deletion base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ julia> digits(10, base = 2, pad = 6)
0
```
"""
digits(n::Integer; base = base::Integer = 10, pad = pad::Integer = 1) =
digits(n::Integer; base::Integer = 10, pad::Integer = 1) =
digits(typeof(base), n, base = base, pad = pad)

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

0 comments on commit 24ec0f6

Please sign in to comment.