Skip to content

Commit

Permalink
docs: Fix a few typos in various docs and comments
Browse files Browse the repository at this point in the history
These were flagged by a spell checker when importing the code to Google
  • Loading branch information
rickeylev committed Oct 9, 2023
1 parent f5d01c7 commit b50634d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/entry_points/py_console_script_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ py_console_script_binary(
)
```
Alternatively, the the `py_console_script_binary.binary_rule` arg can be passed
Alternatively, the `py_console_script_binary.binary_rule` arg can be passed
the version-bound `py_binary` symbol, or any other `py_binary`-compatible rule
of your choosing:
```starlark
Expand Down
2 changes: 1 addition & 1 deletion python/private/common/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def create_py_info(ctx, *, direct_sources, imports):
transitive_sources_depsets = [] # list of depsets
transitive_sources_files = [] # list of Files
for target in ctx.attr.deps:
# PyInfo may not be present for e.g. cc_library rules.
# PyInfo may not be present e.g. cc_library rules.
if PyInfo in target:
info = target[PyInfo]
transitive_sources_depsets.append(info.transitive_sources)
Expand Down
4 changes: 2 additions & 2 deletions python/private/common/py_executable_bazel.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _create_executable(

extra_files_to_build = []

# NOTE: --build_python_zip defauls to true on Windows
# NOTE: --build_python_zip defaults to true on Windows
build_zip_enabled = ctx.fragments.py.build_python_zip

# When --build_python_zip is enabled, then the zip file becomes
Expand Down Expand Up @@ -260,7 +260,7 @@ def _create_executable(
# Double check this just to make sure.
if not is_windows or not build_zip_enabled:
fail(("Should not occur: The non-executable-zip and " +
"non-boostrap-template case should have windows and zip " +
"non-bootstrap-template case should have windows and zip " +
"both true, but got " +
"is_windows={is_windows} " +
"build_zip_enabled={build_zip_enabled}").format(
Expand Down
2 changes: 1 addition & 1 deletion python/private/py_cc_toolchain_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PyCcToolchainInfo = provider(
When consuming this map, it's suggested to use `providers_map.values()` to
return all providers; or copy the map and filter out or replace keys as
appropriate. Note that any keys begining with `_` (underscore) are
appropriate. Note that any keys beginning with `_` (underscore) are
considered private and should be forward along as-is (this better allows
e.g. `:current_py_cc_headers` to act as the underlying headers target it
represents).
Expand Down
4 changes: 2 additions & 2 deletions python/private/py_console_script_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
The mitigation strategy is to remove the first entry in the `sys.path` if it does not have `.runfiles` and it seems
to fix the behaviour of console_scripts under `bazel run`.
This would not happen if we created an console_script binary in the root of an external repository, e.g.
This would not happen if we created a console_script binary in the root of an external repository, e.g.
`@pypi_pylint//` because the path for the external repository is already in the runfiles directory.
"""

Expand Down Expand Up @@ -102,7 +102,7 @@ def run(
console_scripts = dict(config["console_scripts"])
except KeyError:
raise RuntimeError(
f"The package does not provide any console_scripts in it's {_ENTRY_POINTS_TXT}"
f"The package does not provide any console_scripts in its {_ENTRY_POINTS_TXT}"
)

if console_script:
Expand Down

0 comments on commit b50634d

Please sign in to comment.