Преглед на файлове

protoreflect: fix typo in documentation

Update golang/protobuf#880

Change-Id: If896add4b98c071e7d45b2747c429bdc238e711b
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/184677
Reviewed-by: Herbie Ong <herbie@google.com>
Benny Siegert преди 6 години
родител
ревизия
6e381b5c7f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      reflect/protoreflect/type.go

+ 1 - 1
reflect/protoreflect/type.go

@@ -48,7 +48,7 @@ type Descriptor interface {
 	// Support for this functionality is optional and may return nil.
 	// Support for this functionality is optional and may return nil.
 	Parent() Descriptor
 	Parent() Descriptor
 
 
-	// Index returns the the index of this descriptor within its parent.
+	// Index returns the index of this descriptor within its parent.
 	// It returns 0 if the descriptor does not have a parent or if the parent
 	// It returns 0 if the descriptor does not have a parent or if the parent
 	// is unknown.
 	// is unknown.
 	Index() int
 	Index() int