texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Mon, 7 Oct 2024 17:04:49 -0400 (EDT)

branch: master
commit fc1df4e137f2f8d9dd536fe4797efb4ab130f82e
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Oct 7 22:41:43 2024 +0200

    * info/search.c (looking_at): modify comment, as the string is
    necessarily found.
---
 ChangeLog     | 5 +++++
 info/search.c | 5 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ce66613582..e852ed8f86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-07  Patrice Dumas  <pertusus@free.fr>
+
+       * info/search.c (looking_at): modify comment, as the string is
+       necessarily found.
+
 2024-10-07  Patrice Dumas  <pertusus@free.fr>
 
        * info/dir.c (insert_text_into_node): use size_t in argument for a
diff --git a/info/search.c b/info/search.c
index 2f73b54c9c..2396fc1cb0 100644
--- a/info/search.c
+++ b/info/search.c
@@ -388,9 +388,8 @@ looking_at (char *string, SEARCH_BINDING *binding)
   if (search (string, binding, &search_end) != search_success)
     return 0;
 
-  /* If the string was not found, SEARCH_END is -1.  If the string was found,
-     but not right away, SEARCH_END is != binding->start.  Otherwise, the
-     string was found at binding->start. */
+  /* If the string was not found right away, SEARCH_END is != binding->start.
+     Otherwise, the string was found at binding->start. */
   return search_end == binding->start;
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]