From 73f92eef2e804d10b730b1c9bde97439a501484f Mon Sep 17 00:00:00 2001 From: CodeYan01 <65320293+CodeYan01@users.noreply.github.com> Date: Tue, 13 Jun 2023 19:57:36 +0800 Subject: [PATCH] docs: Fix da_push_back return type --- docs/sphinx/reference-libobs-util-darray.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/reference-libobs-util-darray.rst b/docs/sphinx/reference-libobs-util-darray.rst index cebace95a..79d4433e2 100644 --- a/docs/sphinx/reference-libobs-util-darray.rst +++ b/docs/sphinx/reference-libobs-util-darray.rst @@ -144,12 +144,13 @@ dynamic array value with a reference (&) operator. For example: --------------------- -.. function:: void da_push_back(da, const void *data) +.. function:: size_t da_push_back(da, const void *data) Pushes data to the back of the array. :param da: The dynamic array :param data: Pointer to the new data to push + :return: Index of the new value --------------------- @@ -163,13 +164,14 @@ dynamic array value with a reference (&) operator. For example: --------------------- -.. function:: void da_push_back_array(da, const void *src_array, size_t item_count) +.. function:: size_t da_push_back_array(da, const void *src_array, size_t item_count) Pushes an array of values to the back of the array. :param da: The dynamic array :param src_array: Pointer of the array of values :param item_count: Number of items to push back + :return: Index of the first new value ---------------------