7171 //
7272 // This does not include deprecated formats.
7373 SourceOrModuleFormatsString = stringutil .SliceToString (sourceOrModuleFormatsNotDeprecated )
74- // DirOrProtoFileFormats is the string representation of all dir or proto file formats.
74+ // DirOrProtoFileFormatsString is the string representation of all dir or proto file formats.
7575 //
7676 // This does not include deprecated formats.
7777 DirOrProtoFileFormatsString = stringutil .SliceToString (dirOrProtoFileFormats )
@@ -146,7 +146,7 @@ type ProtoFileRef interface {
146146 SourceRef
147147 DirOrProtoFileRef
148148 ProtoFilePath () string
149- // True if the FileScheme is Stdio, Stdout, Stdin, or Null.
149+ // IsDevPath returns true if the FileScheme is Stdio, Stdout, Stdin, or Null.
150150 IsDevPath () bool
151151 IncludePackageFiles () bool
152152 internalProtoFileRef () internal.ProtoFileRef
@@ -167,7 +167,7 @@ type MessageRefParser interface {
167167type SourceRefParser interface {
168168 // GetSourceRef gets the reference for the source file.
169169 GetSourceRef (ctx context.Context , value string ) (SourceRef , error )
170- // GetSourceRef gets the reference for the source file.
170+ // GetSourceRefForInputConfig gets the reference for the source file.
171171 GetSourceRefForInputConfig (
172172 ctx context.Context ,
173173 inputConfig bufconfig.InputConfig ,
@@ -233,8 +233,8 @@ type RefParser interface {
233233 DirRefParser
234234 SourceOrModuleRefParser
235235
236- // TODO FUTURE: should this be renamed to GetRefForString?
237236 // GetRef gets the reference for the message file, source bucket, or module.
237+ // TODO FUTURE: should this be renamed to GetRefForString?
238238 GetRef (ctx context.Context , value string ) (Ref , error )
239239 // GetRefForInputConfig gets the reference for the message file, source bucket, or module.
240240 GetRefForInputConfig (ctx context.Context , inputConfig bufconfig.InputConfig ) (Ref , error )
@@ -328,7 +328,7 @@ type SourceReader interface {
328328// GetReadBucketCloserOption is an option for a GetSourceReadBucketCloser call.
329329type GetReadBucketCloserOption func (* getReadBucketCloserOptions )
330330
331- // GetReadBucketCloserCopyToInMemory says to copy the returned ReadBucketCloser to an
331+ // GetReadBucketCloserWithCopyToInMemory says to copy the returned ReadBucketCloser to an
332332// in-memory ReadBucketCloser. This can be a performance optimization at the expense of memory.
333333func GetReadBucketCloserWithCopyToInMemory () GetReadBucketCloserOption {
334334 return func (getReadBucketCloserOptions * getReadBucketCloserOptions ) {
0 commit comments