Skip to content

Commit 8e64988

Browse files
committed
doc: idem
1 parent 7b32ec8 commit 8e64988

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/manual/linmpc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ savefig("plot5_LinMPC.svg"); nothing # hide
348348
The closed-loop simulation matches the results of the previous section, as expected. We
349349
can now generate the C code using:
350350

351-
```julia
352-
LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs");
351+
```@example 1
352+
LinearMPC.codegen(c_mpc_d; dir="codegen", fname="mpc_funcs")
353353
```
354354

355355
The three C functions to call at each control period are declared in the generated

0 commit comments

Comments
 (0)