Fix release_nested_message typo in C++ arenas guide - #320
Conversation
The inefficient-usage example called release_message() but the field is nested_message, matching the set_allocated and unsafe_arena APIs.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
@Hashim1999164 please fix |
|
@googlebot I signed it! |
|
recheck |
|
@googlebot I signed it! |
Summary
In the inefficient arena
release_...()example, the sample calledrelease_message()even though the field used throughout the snippet isnested_message.This updates that call to
release_nested_message()so it matchesset_allocated_nested_messageand the unsafe arena APIs in the same section.Fixes protocolbuffers/protobuf#28830
Test plan
release_nested_message/unsafe_arena_release_nested_message