From 25b2acb0ebf060694b8aeb05bfc7ea1695a0659a Mon Sep 17 00:00:00 2001 From: SigureMo Date: Fri, 29 Sep 2023 13:24:00 +0800 Subject: [PATCH] fix some dead links --- CHANGELOG.md | 2 +- guide/src/python_from_rust.md | 4 ++-- guide/src/types.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31a9e023..56e4e3da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -177,7 +177,7 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h ### Packaging -- Relax `indexmap` optional depecency to allow `>= 1.6, < 2`. [#2849](https://github.com/PyO3/pyo3/pull/2849 +- Relax `indexmap` optional depecency to allow `>= 1.6, < 2`. [#2849](https://github.com/PyO3/pyo3/pull/2849) - Relax `hashbrown` optional dependency to allow `>= 0.9, < 0.14`. [#2875](https://github.com/PyO3/pyo3/pull/2875) - Update `memoffset` dependency to 0.8. [#2875](https://github.com/PyO3/pyo3/pull/2875) diff --git a/guide/src/python_from_rust.md b/guide/src/python_from_rust.md index b3488a43..ed51b772 100644 --- a/guide/src/python_from_rust.md +++ b/guide/src/python_from_rust.md @@ -139,7 +139,7 @@ fn main() -> PyResult<()> { ### Want to run just an expression? Then use `eval`. -[`Python::eval`]({{#PYO3_DOCS_URL}}/pyo3/struct.Python.html#method.eval) is +[`Python::eval`]({{#PYO3_DOCS_URL}}/pyo3/marker/struct.Python.html#method.eval) is a method to execute a [Python expression](https://docs.python.org/3.7/reference/expressions.html) and return the evaluated value as a `&PyAny` object. @@ -260,7 +260,7 @@ An import in Python will first attempt to lookup the module from this dict, and if not present will use various strategies to attempt to locate and load the module. -The [`append_to_inittab`]({{*PYO3_DOCS_URL}}/pyo3/macro.append_to_inittab.html) +The [`append_to_inittab`]({{#PYO3_DOCS_URL}}/pyo3/macro.append_to_inittab.html) macro can be used to add additional `#[pymodule]` modules to an embedded Python interpreter. The macro **must** be invoked _before_ initializing Python. diff --git a/guide/src/types.md b/guide/src/types.md index e5a68a1b..8bbc48d3 100644 --- a/guide/src/types.md +++ b/guide/src/types.md @@ -295,7 +295,7 @@ usually defined using the `#[pyclass]` macro. This trait marks structs that mirror native Python types, such as `PyList`. -[eval]: {{#PYO3_DOCS_URL}}/pyo3/struct.Python.html#method.eval +[eval]: {{#PYO3_DOCS_URL}}/pyo3/marker/struct.Python.html#method.eval [clone_ref]: {{#PYO3_DOCS_URL}}/pyo3/struct.Py.html#method.clone_ref [pyo3::types]: {{#PYO3_DOCS_URL}}/pyo3/types/index.html [PyAny]: {{#PYO3_DOCS_URL}}/pyo3/types/struct.PyAny.html