Kaynağa Gözat

goprotobuf: Remove an incorrect sentence in the GetExtension doc comment.

R=r
CC=golang-codereviews
https://codereview.appspot.com/51010043
David Symonds 12 yıl önce
ebeveyn
işleme
7a518f4a08
1 değiştirilmiş dosya ile 0 ekleme ve 2 silme
  1. 0 2
      proto/extensions.go

+ 0 - 2
proto/extensions.go

@@ -222,8 +222,6 @@ func ClearExtension(pb extendableProto, extension *ExtensionDesc) {
 
 // GetExtension parses and returns the given extension of pb.
 // If the extension is not present it returns ErrMissingExtension.
-// If the returned extension is modified, SetExtension must be called
-// for the modifications to be reflected in pb.
 func GetExtension(pb extendableProto, extension *ExtensionDesc) (interface{}, error) {
 	if err := checkExtensionTypes(pb, extension); err != nil {
 		return nil, err