Merge branch 'contrib/github_pr_12551' into 'master'

Minor fix style-guide.rst (GitHub PR)

Closes IDFGH-11413

See merge request espressif/esp-idf!27113
This commit is contained in:
Darian 2023-11-14 16:24:51 +08:00
commit 159beab9d9

View File

@ -239,7 +239,7 @@ The standard C ``assert()`` function, defined in ``assert.h`` should be used to
.. note::
When asserting a value of type ``esp_err_t``is equal to ``ESP_OK``, use the :ref:`esp-error-check-macro` instead of an ``assert()``.
When asserting a value of type ``esp_err_t`` is equal to ``ESP_OK``, use the :ref:`esp-error-check-macro` instead of an ``assert()``.
It is possible to configure ESP-IDF projects with assertions disabled (see :ref:`CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL`). Therefore, functions called in an ``assert()`` statement should not have side-effects.