From d4e36f7e65beca997ac831cfaf3a17cab6684feb Mon Sep 17 00:00:00 2001 From: Dennis Ogiermann Date: Tue, 7 Jan 2025 17:47:52 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Knut Andreas Meyer --- src/deprecations.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/deprecations.jl b/src/deprecations.jl index 0faf41be61..5b785d5fb9 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -347,9 +347,7 @@ function value(ip::Interpolation, ξ::Vec) printstyled(io, "`[reference_shape_value(ip, ξ, i) for i in 1:getnbasefunctions(ip)]`", color = :green) print(io, " or ") printstyled(io, "`reference_shape_values!(N, ip, ξ)`", color = :green) - print(io, " (with preallocated ") - printstyled(io, "`N`", color = :green) - print(io, ") instead.") + print(io, " (with preallocated `N`) instead.") throw(DeprecationError(takestring(io))) end @@ -360,9 +358,7 @@ function derivative(ip::Interpolation, ξ::Vec) printstyled(io, "`[reference_shape_gradient(ip, ξ, i) for i in 1:getnbasefunctions(ip)]`", color = :green) print(io, " or ") printstyled(io, "`reference_shape_gradients!(dNdξ, ip, ξ)`", color = :green) - print(io, " (with preallocated ") - printstyled(io, "`dNdξ`", color = :green) - print(io, ") instead.") + print(io, " (with preallocated `dNdξ`) instead.") throw(DeprecationError(takestring(io))) end