From d67cbacb971b471c490655af3b3ce0ff53a8dfbd Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 14 Oct 2017 22:37:58 +0800 Subject: [PATCH] fix code formatting for including headers (#153) Fix code formatting for including headers --- doc/docs/NLopt_Tutorial.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/docs/NLopt_Tutorial.md b/doc/docs/NLopt_Tutorial.md index faf9d1b..b86e8f9 100644 --- a/doc/docs/NLopt_Tutorial.md +++ b/doc/docs/NLopt_Tutorial.md @@ -32,8 +32,10 @@ Example in C/C++ To implement the above example in C or C++, we would first do: -`#include ` -`#include ` +```c +#include  +#include  +``` to include the NLopt header file as well as the standard math header file (needed for things like the `sqrt` function and the `HUGE_VAL` constant), then we would define our objective function as: -- 2.30.2