Skip to content

Commit

Permalink
Fix typos in comments (#48316)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #48316

Reviewed By: walterddr, mrshenli

Differential Revision: D25125123

Pulled By: malfet

fbshipit-source-id: 6f31e5456cc078cc61b288191f1933711acebba0
  • Loading branch information
malfet authored and facebook-github-bot committed Nov 24, 2020
1 parent 671ee71 commit 2dff0b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def run(self):
else:
report('-- Building without distributed package')

# Do not use clang to compile exensions if `-fstack-clash-protection` is defined
# Do not use clang to compile extensions if `-fstack-clash-protection` is defined
# in system CFLAGS
system_c_flags = distutils.sysconfig.get_config_var('CFLAGS')
if IS_LINUX and '-fstack-clash-protection' in system_c_flags and 'clang' in os.environ.get('CC', ''):
Expand Down
4 changes: 2 additions & 2 deletions tools/nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def logging_rotate() -> None:
@contextlib.contextmanager
def logging_manager(*, debug: bool = False) -> Iterator[None]:
"""Setup logging. If a failure starts here we won't
be able to save the user ina reasonable way.
be able to save the user in a reasonable way.
Logging structure: there is one logger (the root logger)
and in processes all events. There are two handlers:
Expand Down Expand Up @@ -210,7 +210,7 @@ def check_branch(subcommand, branch):

@contextlib.contextmanager
def timer(logger, prefix):
"""Timed conetxt manager"""
"""Timed context manager"""
start_time = time.time()
yield
logger.info(f"{prefix} took {time.time() - start_time:.3f} [s]")
Expand Down
2 changes: 1 addition & 1 deletion tools/setup_helpers/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def generate(self, version, cmake_python_library, build_python, build_test, my_e
ninja_deps_file = os.path.join(self.build_dir, '.ninja_deps')
if IS_WINDOWS and USE_NINJA and os.path.exists(ninja_deps_file):
# Cannot rerun ninja on Windows due to a ninja bug.
# The workground is to remove `.ninja_deps`.
# The workaround is to remove `.ninja_deps`.
os.remove(ninja_deps_file)

args = []
Expand Down
2 changes: 1 addition & 1 deletion tools/setup_helpers/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def main():
)
parser.add_argument(
'--selected-op-list-path',
help='Path to the yaml file that contains the list of operators to include for custom build.',
help='Path to the YAML file that contains the list of operators to include for custom build.',
)
parser.add_argument(
'--operators_yaml_path',
Expand Down

0 comments on commit 2dff0b3

Please sign in to comment.