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,