Skip to content

Commit

Permalink
printf: clearer error when someone tries to use "%g".
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Nov 16, 2013
1 parent 0cad721 commit 9d8de89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/printf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ function _gen_p(flags::ASCIIString, width::Int, precision::Int, c::Char)
:(($x)::Ptr), blk
end

function _gen_g(flags::ASCIIString, width::Int, precision::Int, c::Char)
error("printf \"%g\" format specifier not implemented")
end

### core unsigned integer decoding functions ###

macro _handle_zero()
Expand Down

0 comments on commit 9d8de89

Please sign in to comment.