Browse 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 8 năm trước cách đây
mục cha
commit
e0ed9032d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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() {