From bee498d6359dd7ce9aa8bff685ca821ab1bbfe31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sat, 28 Sep 2024 12:01:41 -0400 Subject: [PATCH] [`flake8-use-pathlib`] Fix typo in link to Path.stat (PTH116) (#13546) ## Summary There was a typo in the links of the docs of PTH116, where Path.stat used to link to Path.group. Another rule, PTH202, does it correctly: https://github.com/astral-sh/ruff/blob/ec72e675d9325d404864c0848e969f59a89090a7/crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_path_getsize.rs#L33 This PR only fixes a one word typo. ## Test Plan I did not test that the doc generation framework picked up these changes, I assume it will do it successfully. --- crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs b/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs index 295561c46e..b0dfbaca3d 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs @@ -724,7 +724,7 @@ impl Violation for OsReadlink { /// ``` /// /// ## References -/// - [Python documentation: `Path.stat`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.group) +/// - [Python documentation: `Path.stat`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.stat) /// - [Python documentation: `Path.group`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.group) /// - [Python documentation: `Path.owner`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.owner) /// - [Python documentation: `os.stat`](https://docs.python.org/3/library/os.html#os.stat)