How to print a vector with only 2 decimal places

Strange:

julia> using Printf

julia> x=[1.1231233, 2.324234234]
2-element Vector{Float64}:
 1.1231233
 2.324234234

julia> fmt="%.2f"
"%.2f"

julia> format.(Ref(stdout), Ref(fmt), x)
ERROR: UndefVarError: format not defined
Stacktrace:
 [1] top-level scope
   @ REPL[5]:1

perhaps a version thing? I am still on Julia 1.6.1.