aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2014-01-13 16:00:47 +1100
committerDavid Symonds <dsymonds@golang.org>2014-01-13 16:00:47 +1100
commit7a518f4a0805fcef6af5e440902a296a15e56759 (patch)
treedae62d2cd4a9bf86ff06c31bb1796848f6b104a7
parent2a0a763dbf18cdf912edc23a163e6c6fc81ca2a6 (diff)
downloadprotobuf-7a518f4a0805fcef6af5e440902a296a15e56759.tar.gz
goprotobuf: Remove an incorrect sentence in the GetExtension doc comment.
R=r CC=golang-codereviews https://codereview.appspot.com/51010043
-rw-r--r--proto/extensions.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/proto/extensions.go b/proto/extensions.go
index 50d72aa..c40b392 100644
--- a/proto/extensions.go
+++ b/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