mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 09:32:38 +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>