Fix typos in comments (#48316)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48316

Reviewed By: walterddr, mrshenli

Differential Revision: D25125123

Pulled By: malfet

fbshipit-source-id: 6f31e5456cc078cc61b288191f1933711acebba0
This commit is contained in:
Nikita Shulga
2020-11-24 10:55:00 -08:00
committed by Facebook GitHub Bot
parent 671ee71ad4
commit 2dff0b3e91
4 changed files with 5 additions and 5 deletions

View File

@ -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:
@ -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]")