mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-20 15:41:07 +00:00
Restrict mutation operations during Range to only the current iteration key. This simplifies the guarantees that any given implementation may need to provide. While none of the range operations have a defined order, UnknownFields.Range is special in that the iteration order is at least deterministic. This exception occurs because there is no obviously correct way to re-order them (since order of unknown fields can have semantic significance). Change-Id: I35145e500dbc7c87be7270f0d886ef52e13d07d8 Reviewed-on: https://go-review.googlesource.com/c/144700 Reviewed-by: Damien Neil <dneil@google.com>