Browse Source

Fix typo in comments

This and the bug fixed by the previous commit were reported by
Benno Schulenberg.
Sergey Poznyakoff 1 year ago
parent
commit
31f68bbe2a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/names.c

+ 2 - 2
src/names.c

@@ -1279,7 +1279,7 @@ add_starting_file (char const *file_name)
   starting_file_option = true;
   starting_file_option = true;
 }
 }
 
 
-/* Find a match for FILE_NAME in the name list.  If EXPECT is true,
+/* Find a match for FILE_NAME in the name list.  If EXACT is true,
    look for exact match (no wildcards). */
    look for exact match (no wildcards). */
 static struct name *
 static struct name *
 namelist_match (char const *file_name, bool exact)
 namelist_match (char const *file_name, bool exact)
@@ -1883,7 +1883,7 @@ collect_and_sort_names (void)
     in structure. The caller will have to do that if it wants to.
     in structure. The caller will have to do that if it wants to.
     2. If the namelist is empty, it returns null, unlike name_match, which
     2. If the namelist is empty, it returns null, unlike name_match, which
     returns TRUE.
     returns TRUE.
-    3. If EXPECT is true, it looks for exact matches only (no wildcards). */
+    3. If EXACT is true, it looks for exact matches only (no wildcards). */
 struct name *
 struct name *
 name_scan (const char *file_name, bool exact)
 name_scan (const char *file_name, bool exact)
 {
 {