From 84a168e0fa914f5be3b5e8ee79517f93e3165567 Mon Sep 17 00:00:00 2001 From: Datseris Date: Mon, 26 Feb 2024 15:07:15 +0000 Subject: [PATCH] typo in make new variable --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index c0078ea..7523ff9 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -63,9 +63,9 @@ end new_derived_named_parameter(variable, value, extra::String, suffix = true) If `value isa Num` return `value`. -If `value isa `[`LiteralParameter`](@ref), replace it with its literal value. +If `value isa LiteralParameter`, replace it with its literal value. Otherwise, create a new MTK `@parameter` -whose name is created from `variable` by adding the `extra` string. +whose name is created from `variable` (which could also be just a `Symbol`) by adding the `extra` string. If `suffix == true` the extra is added at the end after a `_`. Otherwise it is added at the start, then a `_` and then the variable name.