From d370a176b69a54a2448493cb1383b9360a46324b Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Wed, 11 Sep 2024 13:03:31 -0600 Subject: [PATCH] fix typo in docs for pymodule macro --- guide/src/module.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/module.md b/guide/src/module.md index 1b2aa49d8c9..6999b09c66e 100644 --- a/guide/src/module.md +++ b/guide/src/module.md @@ -21,7 +21,7 @@ The `#[pymodule]` procedural macro takes care of exporting the initialization fu module to Python. The module's name defaults to the name of the Rust function. You can override the module name by -using `#[pyo3(name = "custom_name")]`: +using `#[pymodule(name = "custom_name")]`: ```rust use pyo3::prelude::*;