Parcourir la source

descriptor: fix example name (#559)

Example_Options is an example on the Options type or function.
Example_options is an example on the package with a suffix of "options".
Joe Tsai il y a 8 ans
Parent
commit
e0ed9032d5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      descriptor/descriptor_test.go

+ 1 - 1
descriptor/descriptor_test.go

@@ -20,7 +20,7 @@ func TestMessage(t *testing.T) {
 	}
 }
 
-func Example_Options() {
+func Example_options() {
 	var msg *tpb.MyMessageSet
 	_, md := descriptor.ForMessage(msg)
 	if md.GetOptions().GetMessageSetWireFormat() {