From c408173f63312d32c1f480eac02c0554c3980cb2 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Mon, 15 May 2023 14:28:35 +0200 Subject: [PATCH] fix URsymbols --- docs/src/UnitfulExt/unitfulext_examples.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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