]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: fix the description of virStringSearch
authorChen Hanxiao <chenhanxiao@gmail.com>
Sat, 23 Dec 2017 09:49:08 +0000 (17:49 +0800)
committerErik Skultety <eskultet@redhat.com>
Wed, 3 Jan 2018 08:54:14 +0000 (09:54 +0100)
There's no argument named @result, use @matches instead.

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virstring.c

index b2ebce27ff499bac13a97800c61e87a2bab0f67a..0cb06bdc9d0d0a02ddaa89413b7a3d5ca63c1636 100644 (file)
@@ -1038,7 +1038,7 @@ int virStringSortRevCompare(const void *a, const void *b)
  * @str: string to search
  * @regexp: POSIX Extended regular expression pattern used for matching
  * @max_matches: maximum number of substrings to return
- * @result: pointer to an array to be filled with NULL terminated list of matches
+ * @matches: pointer to an array to be filled with NULL terminated list of matches
  *
  * Performs a POSIX extended regex search against a string and return all matching substrings.
  * The @result value should be freed with virStringListFree() when no longer