From 8e6eedb42c015aad8a70e92436a0960a5822df3b Mon Sep 17 00:00:00 2001 From: zct <317712914@qq.com> Date: Thu, 9 Oct 2025 12:26:22 +0000 Subject: [PATCH] Remove incorrect @return documentation from CreateStringImpl function since it returns void, not an offset. --- include/flatbuffers/flatbuffer_builder.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/flatbuffers/flatbuffer_builder.h b/include/flatbuffers/flatbuffer_builder.h index 9eea6bab0c5..e6276d850b3 100644 --- a/include/flatbuffers/flatbuffer_builder.h +++ b/include/flatbuffers/flatbuffer_builder.h @@ -1397,7 +1397,6 @@ class FlatBufferBuilderImpl { /// @brief Store a string in the buffer, which can contain any binary data. /// @param[in] str A const char pointer to the data to be stored as a string. /// @param[in] len The number of bytes that should be stored from `str`. - /// @return Returns the offset in the buffer where the string starts. void CreateStringImpl(const char* str, size_t len) { NotNested(); PreAlign(len + 1); // Always 0-terminated.