mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Fix some typos in TODO and C coding standard document.
This commit is contained in:
@@ -1000,7 +1000,7 @@ int animals(int animal)
|
|||||||
All C statements (and case selectors) lie on lines that are multiples of 4 spaces (beginning with an indentation of two): 2, 6, 10, ... (4*n + 2) (for indentation level n = 0, 1, ...)
|
All C statements (and case selectors) lie on lines that are multiples of 4 spaces (beginning with an indentation of two): 2, 6, 10, ... (4*n + 2) (for indentation level n = 0, 1, ...)
|
||||||
</p></li>
|
</p></li>
|
||||||
<li><p>
|
<li><p>
|
||||||
braces lie on a separate line also indented by multiple of 4 spaces: 4, 8, 12, ... 4*n (for indentation level n = 1, 2, ...)
|
Braces lie on a separate line also indented by multiple of 4 spaces: 4, 8, 12, ... 4*n (for indentation level n = 1, 2, ...)
|
||||||
</p></li>
|
</p></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -2029,7 +2029,7 @@ o File system / Generic drivers (fs/, drivers/)
|
|||||||
socket descriptors: if a descriptor is in one range then it is
|
socket descriptors: if a descriptor is in one range then it is
|
||||||
recognized as a file descriptor; if it is in another range
|
recognized as a file descriptor; if it is in another range
|
||||||
then it is recognized as a socket descriptor. These separate
|
then it is recognized as a socket descriptor. These separate
|
||||||
descriptor ranges can cause problems, for example, they makes
|
descriptor ranges can cause problems, for example, they make
|
||||||
dup'ing descriptors with dup2() problematic. The two groups
|
dup'ing descriptors with dup2() problematic. The two groups
|
||||||
of descriptors are really indices into two separate tables:
|
of descriptors are really indices into two separate tables:
|
||||||
On an array of file structures and the other an array of
|
On an array of file structures and the other an array of
|
||||||
|
|||||||
Reference in New Issue
Block a user