From dfdbf235ab2b4577c0a34a5a807ade5fea8f0534 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index c0078ea..75bf6d9 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -63,10 +63,10 @@ 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. -If `suffix == true` the extra is added at the end after a `_`. Otherwise +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. For example,