Skip to content

Commit

Permalink
Fix typo (pytorch#123767)
Browse files Browse the repository at this point in the history
Fixes a tiny typo.
Pull Request resolved: pytorch#123767
Approved by: https://github.com/Skylion007
  • Loading branch information
ViToni authored and pytorchmergebot committed Apr 12, 2024
1 parent 7b11fb4 commit 380180c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/jit/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def split_type_line(type_line):
arrow_pos = type_line.index("->")
except ValueError:
raise RuntimeError(
"Syntax error in type annotation (cound't find `->`)"
"Syntax error in type annotation (couldn't find `->`)"
) from None
return type_line[start_offset:arrow_pos].strip(), type_line[arrow_pos + 2 :].strip()

Expand Down

0 comments on commit 380180c

Please sign in to comment.