diff --git a/protoc-gen-openapiv2/internal/genopenapi/generator_test.go b/protoc-gen-openapiv2/internal/genopenapi/generator_test.go index 57d07809235..70af1944643 100644 --- a/protoc-gen-openapiv2/internal/genopenapi/generator_test.go +++ b/protoc-gen-openapiv2/internal/genopenapi/generator_test.go @@ -1796,7 +1796,7 @@ func TestGenerateRPCOrderNotPreservedMergeFilesAdditionalBindingsMultipleService func findExpectedPaths(foundPaths *[]string, expectedPaths []string, potentialPath string) { seenPaths := map[string]struct{}{} - // foundPaths may bot be empty when this function is called multiple times. + // foundPaths may not be empty when this function is called multiple times, // so we add them to seenPaths map to avoid duplicates. for _, path := range *foundPaths { seenPaths[path] = struct{}{}