summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeorge Gognadze <dreamtocode@users.noreply.github.com>2016-10-31 03:35:31 +0400
committerven <vendethiel@hotmail.fr>2016-10-31 00:35:31 +0100
commitb95bbd93f099e088b88ce307d7ddb3be85f2ca99 (patch)
tree6000a38ba0c62dba6c832d170143146013d62644
parentee26130c4dd5b9c496bc42ca6589142af292246d (diff)
C/en typo, formatting fixes (#2537)
Space should be removed. Before: // Access struct members with . After: // Access struct members with. C should be capitalized. Before: // there is no Boolean type in c. We use ints instead. After: // there is no Boolean type in C. We use ints instead. Before: Header files are an important part of c as they allow for the connection of c After: Header files are an important part of C as they allow for the connection of C Before: Header files are syntactically similar to c source files but reside in ".h" After: Header files are syntactically similar to C source files but reside in ".h" Before: files. They can be included in your c source file by using the precompiler After: files. They can be included in your C source file by using the precompiler Before: as the c file. After: as the C file. Before: /* should instead be put in a c file. */ After: /* should instead be put in a C file. */ Before: /* Beyond the above elements, other definitions should be left to a c source */ After: /* Beyond the above elements, other definitions should be left to a C source */ Before: /* a header file but instead put into separate headers or a c file. */ After: /* a header file but instead put into separate headers or a C file. */
-rw-r--r--c.html.markdown16
1 files changed, 8 insertions, 8 deletions
diff --git a/c.html.markdown b/c.html.markdown
index ae87ca08..57ce72d2 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -202,7 +202,7 @@ int main (int argc, char** argv)
11 % 3; // => 2
// Comparison operators are probably familiar, but
- // there is no Boolean type in c. We use ints instead.
+ // there is no Boolean type in C. We use ints instead.
// (Or _Bool or bool in C99.)
// 0 is false, anything else is true. (The comparison
// operators always yield 0 or 1.)
@@ -715,14 +715,14 @@ typedef void (*my_fnp_type)(char *);
/******************************* Header Files **********************************
-Header files are an important part of c as they allow for the connection of c
+Header files are an important part of C as they allow for the connection of C
source files and can simplify code and definitions by separating them into
separate files.
-Header files are syntactically similar to c source files but reside in ".h"
-files. They can be included in your c source file by using the precompiler
+Header files are syntactically similar to C source files but reside in ".h"
+files. They can be included in your C source file by using the precompiler
command #include "example.h", given that example.h exists in the same directory
-as the c file.
+as the C file.
*/
/* A safe guard to prevent the header from being defined too many times. This */
@@ -753,12 +753,12 @@ enum traffic_light_state {GREEN, YELLOW, RED};
/* Function prototypes can also be defined here for use in multiple files, */
/* but it is bad practice to define the function in the header. Definitions */
-/* should instead be put in a c file. */
+/* should instead be put in a C file. */
Node createLinkedList(int *vals, int len);
-/* Beyond the above elements, other definitions should be left to a c source */
+/* Beyond the above elements, other definitions should be left to a C source */
/* file. Excessive includes or definitions should, also not be contained in */
-/* a header file but instead put into separate headers or a c file. */
+/* a header file but instead put into separate headers or a C file. */
#endif /* End of the if precompiler directive. */