Skip to content

Commit

Permalink
chore: fix some comments (#4092)
Browse files Browse the repository at this point in the history
Signed-off-by: avoidalone <[email protected]>
  • Loading branch information
avoidalone authored Mar 13, 2024
1 parent ffe8ce6 commit 29009e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoc-gen-openapiv2/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Generated an open-api spec for a grpc api spec.
Reads the the api spec in protobuf format and generate an open-api spec.
Reads the api spec in protobuf format and generate an open-api spec.
Optionally applies settings from the grpc-service configuration.
"""

Expand Down Expand Up @@ -37,7 +37,7 @@ def _direct_source_infos(proto_info, provided_sources = []):
local_offset = offset
if src.root.path and not source_root.startswith(src.root.path):
# Before Bazel 1.0, `proto_source_root` wasn't guaranteed to be a
# prefix of `src.path`. This could happend, e.g., if `file` was
# prefix of `src.path`. This could happened, e.g., if `file` was
# generated (https://github.com/bazelbuild/bazel/issues/9215).
local_offset += len(src.root.path) + 1 # + '/'.
infos.append(struct(file = src, import_path = src.path[local_offset:]))
Expand Down

0 comments on commit 29009e9

Please sign in to comment.