Skip to content

Commit 1d65a08

Browse files
committed
typo
1 parent 167503a commit 1d65a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python/pants/util/docutil.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def terminal_width(*, fallback: int = 96, padding: int = 2) -> int:
1616
return shutil.get_terminal_size(fallback=(fallback, 24)).columns - padding
1717

1818

19-
_VERSIONED_PREFICES = ("docs/", "reference/")
19+
_VERSIONED_PREFIXES = ("docs/", "reference/")
2020

2121

2222
def doc_url(path: str) -> str:
@@ -30,7 +30,7 @@ def doc_url(path: str) -> str:
3030
https://www.pantsbuild.org/2.19/docs/python/overview/enabling-python-support, pass
3131
`"docs/python/overview/enabling-python-support"`
3232
"""
33-
versioned = any(path.startswith(prefix) for prefix in _VERSIONED_PREFICES)
33+
versioned = any(path.startswith(prefix) for prefix in _VERSIONED_PREFIXES)
3434
version_info = f"{MAJOR_MINOR}/" if versioned else ""
3535
return f"https://www.pantsbuild.org/{version_info}{path}"
3636

0 commit comments

Comments
 (0)