Skip to content

Commit

Permalink
Fix module name in getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista authored and davidhewitt committed Nov 1, 2022
1 parent 5bbd21c commit 062470a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
/// 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(())
}
Expand Down

0 comments on commit 062470a

Please sign in to comment.