]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lib-src/etags.c (escape_shell_arg_string): Minor doc fix.
authorStefan Kangas <stefankangas@gmail.com>
Tue, 6 Dec 2022 17:05:08 +0000 (18:05 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 6 Dec 2022 17:05:08 +0000 (18:05 +0100)
lib-src/etags.c

index b76590631d82296efb4bb12c0d2030dc80371a2d..a06c236140f2c395e73d2ae6553fb84c35925555 100644 (file)
@@ -7722,12 +7722,12 @@ etags_mktmp (void)
 
 #if !MSDOS && !defined (DOS_NT)
 /*
- * Adds single quotes around a string, if found single quotes, escaped it.
+ * Add single quotes around a string, and escape any single quotes.
  * Return a newly-allocated string.
  *
  * For example:
- * escape_shell_arg_string("test.txt") => 'test.txt'
- * escape_shell_arg_string("'test.txt") => ''\''test.txt'
+ * escape_shell_arg_string ("test.txt")  => "'test.txt'"
+ * escape_shell_arg_string ("'test.txt") => "''\''test.txt'"
  */
 static char *
 escape_shell_arg_string (char *str)