Permalink
Browse files

Fix #812

  • Loading branch information...
1 parent b5afd67 commit d5172ca0c8426e1d3c729580665ae2b910766f5b @carlobaldassi committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 base/printf.jl
View
@@ -769,4 +769,4 @@ end
fprintf(s::IOStream, f::Function, args...) = f(s, args...)
fprintf(s::IOStream, fmt::String, args...) = fprintf(s, eval(f_str_f(fmt)), args...)
printf(f::Union(Function,String), args...) = fprintf(OUTPUT_STREAM, f, args...)
-sprintf(f::Union(Function,String), args...) = sprint(printf, f, args...)
+sprintf(f::Union(Function,String), args...) = sprint(fprintf, f, args...)

0 comments on commit d5172ca

Please sign in to comment.