From: Simon Marchi Date: Fri, 13 Dec 2019 21:47:57 +0000 (-0500) Subject: dynamic-array: fix documentation of lttng_dynamic_pointer_array_get_pointer X-Git-Tag: v2.12.0-rc1~170 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=14c4262b940630bbb75f68b8c2eaef2b134a62d9;hp=f9e096dbb498a409814d95258220a342160cdf46;ds=sidebyside dynamic-array: fix documentation of lttng_dynamic_pointer_array_get_pointer The documentation of this function says that mutating the array invalidates the return pointer. This is not true, since the returned pointer is the element itself, not a pointer to the array. Change-Id: I8b8978cddb2d1d6ce0b42ed313e9843ca418c96c Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/dynamic-array.h b/src/common/dynamic-array.h index 1fbc29b70..483db3631 100644 --- a/src/common/dynamic-array.h +++ b/src/common/dynamic-array.h @@ -117,8 +117,7 @@ size_t lttng_dynamic_pointer_array_get_count( } /* - * Returns a pointer to the element. Mutating operations on the array invalidate - * the returned pointer. + * Returns the pointer at index `index`. */ static inline void *lttng_dynamic_pointer_array_get_pointer(