Fix typos under torch/distributed directory (#98225)

This PR fixes typos in comments and messages of `.py` files under `torch/distributed` directory

Pull Request resolved: https://github.com/pytorch/pytorch/pull/98225
Approved by: https://github.com/soulitzer, https://github.com/kit1980
This commit is contained in:
Kazuaki Ishizaki
2023-04-05 00:21:33 +00:00
committed by PyTorch MergeBot
parent 3af0228338
commit 6514d71add
26 changed files with 38 additions and 38 deletions

View File

@ -483,7 +483,7 @@ except TypeError:
# This is for the fact that pybind11 generates the parameter
# `self` as type `rpc.PyRRef`, so a `:inherited-members:`
# under `.. autoclass:: RRef` does not work.
# we have to do the following process to replacee `rpc.PyRRef` with `rpc.RRef`.
# we have to do the following process to replace `rpc.PyRRef` with `rpc.RRef`.
#
def method_factory(method_name, docstring):
def method(self, *args, **kwargs):