From f7290a0610eab6c2151f2c1f04796c1c1c34b91b Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:44:03 +0200 Subject: [PATCH] Fix detector display by replacing `println` with `print` --- src/adtypes_interface.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adtypes_interface.jl b/src/adtypes_interface.jl index c9da8f3..6d2e120 100644 --- a/src/adtypes_interface.jl +++ b/src/adtypes_interface.jl @@ -163,9 +163,9 @@ end for detector in (:TracerSparsityDetector, :TracerLocalSparsityDetector) @eval function Base.show(io::IO, d::$detector{TG,TH}) where {TG,TH} if TG == DEFAULT_GRADIENT_TRACER && TH == DEFAULT_HESSIAN_TRACER - println(io, $detector, "()") + print(io, $detector, "()") else - println(io, $detector, "{", TG, ",", TH, "}()") + print(io, $detector, "{", TG, ",", TH, "}()") end return nothing end