This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 906279e37a5 Modify ``do while`` Statement typo
906279e37a5 is described below
commit 906279e37a513e10ff8078f27f5280362bb31d5f
Author: rovinyu <[email protected]>
AuthorDate: Sun Dec 28 11:48:12 2025 +0800
Modify ``do while`` Statement typo
The following should be correct sample:
do
{
ready = !notready();
}
while (!ready);
senddata();
do
{
ptr++;
}
while (*ptr != '\0');
---
Documentation/contributing/coding_style.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/contributing/coding_style.rst
b/Documentation/contributing/coding_style.rst
index 93a27c96c5b..1637441783e 100644
--- a/Documentation/contributing/coding_style.rst
+++ b/Documentation/contributing/coding_style.rst
@@ -2238,7 +2238,7 @@ braces <#braces>`__, `indentation <#indentation>`__, and
do ptr++; while (*ptr != '\0');
-.. error:: This is incorrect
+.. tip:: This is correct
.. code-block:: c