mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
34eb7ef6d5
Follow the precedence of Go maps where deletion on a key without an entry in the map is a noop. Similarly, document that the following methods are safe to call with entries that do not exist: * Map.Clear * KnownFields.Clear * ExtensionFieldTypes.Remove Change the implementation for each of these to match the documented behavior. Change-Id: Ifccff9b7b03baaeffdc366d05f6286ba60e14934 Reviewed-on: https://go-review.googlesource.com/c/148317 Reviewed-by: Herbie Ong <herbie@google.com> |
||
---|---|---|
.. | ||
legacy_enum.go | ||
legacy_extension_hack.go | ||
legacy_file.go | ||
legacy_message.go | ||
legacy_proto2_test.go | ||
legacy_proto3_test.go | ||
legacy_test.go | ||
legacy_unknown.go | ||
message_field.go | ||
message_test.go | ||
message.go | ||
pointer_reflect.go | ||
pointer_unsafe.go |