summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKian Meng Ang <kianmeng.ang@gmail.com>2021-10-18 21:16:35 +0800
committerGitHub <noreply@github.com>2021-10-18 06:16:35 -0700
commita7b480ccbb4834e59858f5ffd04ab485da1e4b94 (patch)
treefec57dccfd4be6d900f62a9db612f9593bfb42d5 /examples
parent05dc0cfda95ea6ff0eb909254ddaaa869655edba (diff)
downloadpycparser-a7b480ccbb4834e59858f5ffd04ab485da1e4b94.tar.gz
Fix typos (#443)
* Fix typos * Revert changes in vendor module
Diffstat (limited to 'examples')
-rw-r--r--examples/c_files/memmgr.h2
-rw-r--r--examples/c_files/year.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/c_files/memmgr.h b/examples/c_files/memmgr.h
index e792fb8..832614f 100644
--- a/examples/c_files/memmgr.h
+++ b/examples/c_files/memmgr.h
@@ -49,7 +49,7 @@
// minimize pool fragmentation in case of multiple allocations
// and deallocations, it is advisable to not allocate
// blocks that are too small.
-// This flag sets the minimal ammount of quantas for
+// This flag sets the minimal amount of quantas for
// an allocation. If the size of a ulong is 4 and you
// set this flag to 16, the minimal size of an allocation
// will be 4 * 2 * 16 = 128 bytes
diff --git a/examples/c_files/year.c b/examples/c_files/year.c
index 12c4a33..f7c0920 100644
--- a/examples/c_files/year.c
+++ b/examples/c_files/year.c
@@ -7,8 +7,8 @@ void convert(int thousands, int hundreds, int tens, int ones)
char *num[] = {"", "One", "Two", "Three", "Four", "Five", "Six",
"Seven", "Eight", "Nine"};
-char *for_ten[] = {"", "", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty",
- "Seventy", "Eighty", "Ninty"};
+char *for_ten[] = {"", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty",
+ "Seventy", "Eighty", "Ninety"};
char *af_ten[] = {"Ten", "Eleven", "Twelve", "Thirteen", "Fourteen",
"Fifteen", "Sixteen", "Seventeen", "Eighteen", "Ninteen"};