[BE] fix typos in tools/ (#156082)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156082
Approved by: https://github.com/soulitzer
ghstack dependencies: #156079
This commit is contained in:
Xuehai Pan
2025-06-18 00:11:00 +08:00
committed by PyTorch MergeBot
parent ccea6ddac3
commit a69785b3ec
29 changed files with 39 additions and 39 deletions

View File

@ -14,7 +14,7 @@ Or if you would like to check out the nightly commit in detached HEAD mode::
$ ./tools/nightly.py checkout
$ source venv/bin/activate # or `& .\venv\Scripts\Activate.ps1` on Windows
Or if you would like to re-use an existing virtual environment, you can pass in
Or if you would like to reuse an existing virtual environment, you can pass in
the prefix argument (--prefix)::
$ ./tools/nightly.py checkout -b my-nightly-branch -p my-env
@ -686,7 +686,7 @@ def _nightly_version(site_dir: Path) -> str:
@timed("Checking out nightly PyTorch")
def checkout_nightly_version(branch: str | None, site_dir: Path) -> None:
"""Get's the nightly version and then checks it out."""
"""Gets the nightly version and then checks it out."""
nightly_version = _nightly_version(site_dir)
if branch is None:
# Detached mode - explicitly use --detach flag