Skip to content

Commit

Permalink
fix #29662: missing import from Base.Printf to Printf stdlib. (#29663)
Browse files Browse the repository at this point in the history
(cherry picked from commit 84b9577)
  • Loading branch information
fredrikekre authored and KristofferC committed Feb 20, 2020
1 parent 44bf22b commit 1f92410
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/Printf/src/Printf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Printf
export @printf, @sprintf
using Base.Printf: _printf, is_str_expr, fix_dec, DIGITS, DIGITSs, print_fixed, print_fixed_width, decode_dec, decode_hex,
ini_hex, ini_HEX, print_exp_a, decode_0ct, decode_HEX, ini_dec, print_exp_e,
decode_oct, _limit
decode_oct, _limit, SmallNumber
using Unicode: textwidth

"""
Expand Down
3 changes: 2 additions & 1 deletion stdlib/Printf/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,5 @@ end
# test at macro execution time
@test_throws ArgumentError("@sprintf: wrong number of arguments (2) should be (3)") (@sprintf "%d%d%d" 1:2...)


# issue #29662
@test (@sprintf "%12.3e" pi*1e100) == " 3.142e+100"

0 comments on commit 1f92410

Please sign in to comment.