Fix English typos in comments of check_names and list-identifiers

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py
index 5dc38fc..113854c 100755
--- a/tests/scripts/check_names.py
+++ b/tests/scripts/check_names.py
@@ -39,7 +39,7 @@
 - Typo checking: All words that begin with MBED exist as macros or constants.
 
 The script returns 0 on success, 1 on test failure, and 2 if there is a script
-error error. Must be run from Mbed TLS root.
+error. It must be run from Mbed TLS root.
 """
 
 import argparse
@@ -429,8 +429,9 @@
 
     def parse_identifiers(self, include, exclude=None):
         """
-        Parse all lines of a header where a function identifier is declared,
-        based on some huersitics. Highly dependent on formatting style.
+        Parse all lines of a header where a function/enum/struct/union/typedef
+        identifier is declared, based on some heuristics. Highly dependent on
+        formatting style.
         Note: .match() checks at the beginning of the string (implicit ^), while
         .search() checks throughout.
 
@@ -509,7 +510,7 @@
                         line = previous_line.strip() + " " + line.strip()
                         previous_line = ""
 
-                    # Skip parsing if line has a space in front = hueristic to
+                    # Skip parsing if line has a space in front = heuristic to
                     # skip function argument lines (highly subject to formatting
                     # changes)
                     if line[0] == " ":
diff --git a/tests/scripts/list-identifiers.sh b/tests/scripts/list-identifiers.sh
index 781c609..9b93080 100755
--- a/tests/scripts/list-identifiers.sh
+++ b/tests/scripts/list-identifiers.sh
@@ -56,9 +56,9 @@
     cat <<EOF
 Sorry, this script has to be called with --internal.
 
-This script exists solely for backwards compatibility for the previous ieration
-of list-identifiers.sh, of which only the --internal option remains in use. It
-is a thin wrapper around list_internal_identifiers.py.
+This script exists solely for backwards compatibility with the previous
+iteration of list-identifiers.sh, of which only the --internal option remains in
+use. It is a thin wrapper around list_internal_identifiers.py.
 
 check-names.sh, which used to depend on this script, has been replaced with
 check_names.py and is now self-complete.