소스 검색

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 년 전
부모
커밋
e0ed9032d5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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() {