diff --git a/docs/src/UnitfulExt/unitfulext_examples.jl b/docs/src/UnitfulExt/unitfulext_examples.jl index d7edfa6367..dc891dd428 100644 --- a/docs/src/UnitfulExt/unitfulext_examples.jl +++ b/docs/src/UnitfulExt/unitfulext_examples.jl @@ -64,7 +64,7 @@ plot([plot(y, ylab="mass", title=repr(s), unitformat=s) for s in (nothing, true, # `unitformat` can be one of a number of predefined symbols, defined in URsymbols = if isdefined(Base, :get_extension) - Base.get_extension(Plots, :UnitfulExt) + getproperty(Base.get_extension(Plots, :UnitfulExt), :UNIT_FORMATS) else Plots.UnitfulExt.UNIT_FORMATS end |> keys