From 47490a7a31fb4f42b9748d7ac3bb7842bcda9801 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 1 Nov 2022 14:08:28 +0700 Subject: [PATCH] Fix module name in getting started --- guide/src/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/getting_started.md b/guide/src/getting_started.md index 785ed97f..481e5e4d 100644 --- a/guide/src/getting_started.md +++ b/guide/src/getting_started.md @@ -153,7 +153,7 @@ fn sum_as_string(a: usize, b: usize) -> PyResult { /// the `lib.name` setting in the `Cargo.toml`, else Python will not be able to /// import the module. #[pymodule] -fn string_sum(_py: Python<'_>, m: &PyModule) -> PyResult<()> { +fn pyo3_example(_py: Python<'_>, m: &PyModule) -> PyResult<()> { m.add_function(wrap_pyfunction!(sum_as_string, m)?)?; Ok(()) }