From 57175a5e572b72d84d69c80b59d47e517806be21 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 18 May 2021 18:29:52 +0200 Subject: [PATCH] Fix CROW_MAIN documentation --- docs/getting_started/your_first_application.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting_started/your_first_application.md b/docs/getting_started/your_first_application.md index eeab55a0c..3257b6dd9 100644 --- a/docs/getting_started/your_first_application.md +++ b/docs/getting_started/your_first_application.md @@ -1,11 +1,11 @@ This page shows how you can get started with a simple hello world application. ##1. Include -Starting with an empty `main.cpp` file, add `#!cpp #CROW_MAIN` then `#!cpp #include "crow.h"` or `#!cpp #include "crow_all.h"` if you're using the single header file. +Starting with an empty `main.cpp` file, add `#!cpp #define CROW_MAIN` then `#!cpp #include "crow.h"` or `#!cpp #include "crow_all.h"` if you're using the single header file. !!! note - If you're using multiple C++ source files make sure to have `#CROW_MAIN` defined only in your main source file. + If you're using multiple C++ source files make sure to have `CROW_MAIN` defined only in your main source file. ##2. App declaration Next Create a `main()` and declare a `#!cpp crow::SimpleApp` inside, your code should look like this