Skip to content

Commit d505a2f

Browse files
committed
Fallback for printing string variables
1 parent 2b7fde4 commit d505a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Equation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function string_constant(val, bracketed::Bool)
243243
end
244244

245245
function string_variable(feature, variable_names)
246-
if variable_names === nothing
246+
if variable_names === nothing || feature > lastindex(variable_names)
247247
return "x" * string(feature)
248248
else
249249
return variable_names[feature]

0 commit comments

Comments
 (0)