From c2156ffd728d29836d6fd9594ab656a4a7438f6f Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 7 Nov 2022 16:17:14 +0100 Subject: [PATCH] fix show for custom callback functors (#101) * fix custom callback functors * add comment --- src/Observables.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Observables.jl b/src/Observables.jl index 0a9e069..a61e891 100644 --- a/src/Observables.jl +++ b/src/Observables.jl @@ -279,7 +279,7 @@ function Base.show(io::IO, obsf::ObserverFunction) io = IOContext(io, :compact => true) showdflt(io, @nospecialize(f), obs) = print(io, "ObserverFunction `", f, "` operating on ", obs) - nm = string(nameof(obsf.f)) + nm = string(obsf.f) # 1.6 doesn't support nameof(some_struct), and also nameof(f) == Symbol(string(f))? if !occursin('#', nm) showdflt(io, obsf.f, obsf.observable)