emacs-31 7822f2d5ea7: Fix typo in Fmatch_end's doc string

Eli Zaretskii <[email protected]> Wed, 22 Jul 2026 07:13:04 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit 7822f2d5ea7e0995db27009717ea16980480e3da
Author: Donjuanplatinum <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    Fix typo in Fmatch_end's doc string
    
    * src/search.c (Fmatch_end): Fix "start position" to "end position".
    (Bug#81447)
    
    Copyright-paperwork-exempt: yes
---
 src/search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c
index 6d906df1b90..2b721a4367a 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2801,7 +2801,7 @@ Return value is undefined if the last search failed.  */)
 DEFUN ("match-end", Fmatch_end, Smatch_end, 1, 1, 0,
        doc: /* Return position of end of text matched by last search.
 SUBEXP, a number, specifies the parenthesized subexpression in the last
-  regexp for which to return the start position.
+  regexp for which to return the end position.
 Value is nil if SUBEXPth subexpression didn't match, or there were fewer
   than SUBEXP subexpressions.
 SUBEXP zero means the entire text matched by the whole regexp or whole